mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
- Split out requirements in two files (testing and main) - Add Bash script running test with coverage - Add .coveragerc configuration file, including Django coverage plugin - Add post-build to Travis script running CodeCov
29 lines
629 B
YAML
29 lines
629 B
YAML
sudo: required
|
|
services:
|
|
- docker
|
|
|
|
env:
|
|
COMPOSE_VERSION: 1.8.0
|
|
|
|
before_install:
|
|
- curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
|
|
- chmod +x docker-compose
|
|
- sudo mv docker-compose /usr/local/bin
|
|
- sudo pip install tox
|
|
|
|
# setup databases
|
|
before_script:
|
|
- cp conf/development.env.example conf/development.env
|
|
- docker-compose build
|
|
- docker-compose up -d
|
|
- sleep 20
|
|
|
|
script:
|
|
- tox
|
|
- docker-compose run web bash bin/test_with_coverage
|
|
|
|
after_success:
|
|
- pip install codecov
|
|
- pip install django_coverage_plugin==1.3.1
|
|
- codecov
|