normandy/circle.yml

45 строки
1.2 KiB
YAML

machine:
pre:
# Install CircleCI's fork for Docker 1.10.0
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
- chmod -R 777 $CIRCLE_TEST_REPORTS $CIRCLE_ARTIFACTS
services:
- postgresql
- docker
environment:
MOCK_SERVER_DOMAIN: https://normandy-mock.dev.mozaws.net
MOCK_SERVER_ARTIFACTS: "${CIRCLE_ARTIFACTS}/mock-recipe-server"
dependencies:
pre:
- docker info
# Use pipstrap to bootstrap ourselves to a trusted pip 8 for hash
# checking.
- ./ci/circleci/bin/pipstrap.py
# Install latest pip (for constraint support), then the rest of the
# CI requirements.
- pip install -r ./ci/circleci/requirements/pip.txt
- pip install -r ./ci/circleci/requirements/default.txt -c ./ci/circleci/requirements/constraints.txt
override:
- ./ci/circleci/bin/runner.sh dependencies
compile:
override:
- ./ci/circleci/bin/runner.sh compile
test:
override:
- ./ci/circleci/bin/runner.sh test
deployment:
latest:
branch: master
commands:
- ./ci/circleci/bin/runner.sh deploy latest
tags:
# push all tags
tag: /.*/
commands:
- ./ci/circleci/bin/runner.sh deploy "$CIRCLE_TAG"