Skip to content
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.

Commit

Permalink
Tentando rodar coveralls via travis e não só pelo docker
Browse files Browse the repository at this point in the history
  • Loading branch information
diraol committed Mar 11, 2018
1 parent ac6890d commit 54eb9fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
radar.sock
radar_parlamentar/static
.git
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- cd ..

install:
- pip install coveralls coverage
- docker build -t radarparlamentar/test .

env:
global:
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)

install:
- pip install coveralls coverage

script:
- docker build -t radarparlamentar/test .
- docker run -v $(pwd):/radar -e COVERALLS_REPO_TOKEN -e COVERALLS_REPO_TOKEN radarparlamentar/test travis

after_script:
- cd radar_parlamentar
- coveralls
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi

0 comments on commit 54eb9fa

Please sign in to comment.