Fix travis.yml
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,3 +6,4 @@ build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
.tox/
|
||||
.coverage
|
||||
|
||||
15
.travis.yml
15
.travis.yml
@@ -1,18 +1,25 @@
|
||||
language: python
|
||||
dist: trusty
|
||||
sudo: required
|
||||
group: edge
|
||||
python:
|
||||
- "3.6"
|
||||
env:
|
||||
- DJANGO_VERSION=2.0
|
||||
global:
|
||||
- CC_TEST_REPORTER_ID=995f11c260357b16b3ead412d8d8466d1609384bcfa38827453d469cc5406865
|
||||
- CC_TEST_REPORTER_ID=995f11c260357b16b3ead412d8d8466d1609384bcfa38827453d469cc5406865
|
||||
install:
|
||||
- pip install Django==$DJANGO_VERSION
|
||||
- pip install tox-travis
|
||||
- pip install -q -r requirements-dev.txt
|
||||
before_script:
|
||||
- pip install coverage
|
||||
before_script: # code coverage tool
|
||||
- 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
|
||||
script:
|
||||
- tox
|
||||
- coverage run runtests.py --source="pwa" -v 2
|
||||
after_script:
|
||||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||
- coverage xml
|
||||
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
|
||||
@@ -1,6 +1,8 @@
|
||||
django-pwa
|
||||
=====
|
||||
[](https://travis-ci.org/silviolleite/django-pwa)
|
||||
[](https://codeclimate.com/github/silviolleite/django-pwa/maintainability)
|
||||
[](https://codeclimate.com/github/silviolleite/django-pwa/test_coverage)
|
||||
This Django app turns your project into a [progressive web app](https://developers.google.com/web/progressive-web-apps/). Navigating to your site on an Android phone will prompt you to add the app to your home screen.
|
||||
|
||||

|
||||
|
||||
Reference in New Issue
Block a user