2016-02-03 17:11:23 +00:00
|
|
|
sudo: required
|
2014-11-28 12:14:40 +00:00
|
|
|
services:
|
2016-02-03 17:11:23 +00:00
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
2016-10-13 15:33:00 +00:00
|
|
|
- sudo pip install tox
|
2014-11-28 12:14:40 +00:00
|
|
|
|
|
|
|
# setup databases
|
|
|
|
before_script:
|
|
|
|
- cp conf/development.env.example conf/development.env
|
2016-02-03 17:11:23 +00:00
|
|
|
- docker-compose build
|
2014-11-28 12:14:40 +00:00
|
|
|
|
|
|
|
script:
|
2016-10-13 15:33:00 +00:00
|
|
|
- tox
|
2017-02-13 14:17:07 +00:00
|
|
|
- docker-compose -f docker-compose-test.yml run --rm test bash bin/test_with_coverage -v2
|
2017-03-08 11:25:39 +00:00
|
|
|
- git checkout $(git describe --abbrev=0 --tags `git describe --tags`^) && docker-compose build web
|
2017-03-08 11:52:59 +00:00
|
|
|
- docker-compose run --rm web true
|
2017-03-08 11:25:39 +00:00
|
|
|
- git checkout - && docker-compose build web
|
2017-03-08 11:52:59 +00:00
|
|
|
- docker-compose run --rm web true
|
2016-12-20 17:38:22 +00:00
|
|
|
|
|
|
|
after_success:
|
|
|
|
- pip install codecov
|
2017-02-16 15:07:48 +00:00
|
|
|
- pip install django_coverage_plugin==1.4.2
|
2016-12-20 17:38:22 +00:00
|
|
|
- codecov
|