Fix travis.yml

This commit is contained in:
Silvio Leite
2018-11-16 15:47:21 -02:00
parent e45b83d54c
commit 86ed4b6504
3 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ build/
dist/ dist/
*.egg-info/ *.egg-info/
.tox/ .tox/
.coverage

View File

@@ -1,4 +1,7 @@
language: python language: python
dist: trusty
sudo: required
group: edge
python: python:
- "3.6" - "3.6"
env: env:
@@ -9,10 +12,14 @@ install:
- pip install Django==$DJANGO_VERSION - pip install Django==$DJANGO_VERSION
- pip install tox-travis - pip install tox-travis
- pip install -q -r requirements-dev.txt - 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 - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter - chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build - ./cc-test-reporter before-build
script: tox script:
- tox
- coverage run runtests.py --source="pwa" -v 2
after_script: 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

View File

@@ -1,6 +1,8 @@
django-pwa django-pwa
===== =====
[![Build Status](https://travis-ci.org/silviolleite/django-pwa.svg)](https://travis-ci.org/silviolleite/django-pwa) [![Build Status](https://travis-ci.org/silviolleite/django-pwa.svg)](https://travis-ci.org/silviolleite/django-pwa)
[![Maintainability](https://api.codeclimate.com/v1/badges/246542ea921058c4f76f/maintainability)](https://codeclimate.com/github/silviolleite/django-pwa/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/246542ea921058c4f76f/test_coverage)](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. 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.
![Prompt for install](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot1.png) ![Prompt for install](https://github.com/silviolleite/django-pwa/raw/master/images/screenshot1.png)