Files
django-pwa/.travis.yml
Silvio Leite 7c0df3201e Fix travis.yml
2018-11-16 16:12:22 -02:00

24 lines
785 B
YAML

language: python
dist: trusty
sudo: required
group: edge
python:
- "3.6"
env:
- DJANGO_VERSION=2.0
- CC_TEST_REPORTER_ID=6c015c866a94cfb5b7a046e9a0725a6a02224b1023eeef9ea2db63426beb3fd3
install:
- pip install Django==$DJANGO_VERSION
- pip install tox-travis
- pip install -q -r requirements-dev.txt
- pip install coverage
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- tox
- coverage run runtests.py --source="pwa" -v 2
after_script:
- coverage xml
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi