Skip to content

Commit

Permalink
Merge pull request #34 from RockefellerArchiveCenter/code-climate
Browse files Browse the repository at this point in the history
add code climate test coverage
  • Loading branch information
p-galligan authored Jun 24, 2019
2 parents b3b4273 + 72606d7 commit ea8c6b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ before_install:
- cp zodiac/zodiac/config.py.example zodiac/zodiac/config.py
- docker-compose up -d
- sleep 20s
- docker-compose exec zodiac-web pip install coverage
install: true
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:
- docker-compose exec zodiac-web python manage.py test
- docker-compose exec zodiac-web coverage run manage.py test
after_script:
- docker-compose exec zodiac-web coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit ea8c6b9

Please sign in to comment.