.travis.yml
circle.yml
Configure Container (machine
)
machine:
environment:
DATABASE_URL: ...
DJANGO_SETTINGS_MODULE: ...
...: ...
python:
version: ...
services:
- postgresql
timezone: Europe/Kiev
circle.yml
Build Dependencies
dependencies:
cache_directories:
- ...
override:
- pip install -U pip wheel
- make
circle.yml
Run Tests
test:
override:
- TEST_ARGS=--with-xunit make test
post:
- "coveralls || :"
- ...
circle.yml
Deploy Project
deployment:
staging:
branch: develop
commands:
- LEVEL=staging make deploy
production:
branch: master
commands:
- LEVEL=production make dump-db
- LEVEL=production make deploy
circle.yml
to repomachine:
environment:
COVERALLS_REPO_TOKEN: ...
LEVEL: development
node:
version: 4.4.3
timezone:
America/Los_Angeles
dependencies:
cache_directories:
- node_modules
- webpack/.babel-cache
override:
- npm install -g npm@3.8.6
- make
test:
override:
- make test
post:
- "npm run coveralls || :"
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- mv ./test-results.xml $CIRCLE_TEST_REPORTS/junit/test-results.xml
deployment:
production:
branch: master
commands:
- LEVEL=production make deploy
deployment:
release:
tag: /v\d+.\d+.\d+.*/
commands:
- ./circle-npm-login.sh
- make deploy
general:
artifacts:
- "api_test_report.html"
- "slow_tests.csv"
machine:
services:
- mysql
- postgresql
- cassandra
- elasticsearch
- rabbitmq-server
- redis
- riak
- beanstalkd
- couchbase-server
- neo4j
- sphinxsearch