Skip to content

Commit

Permalink
Merge pull request #37 from RockefellerArchiveCenter/code-climate
Browse files Browse the repository at this point in the history
add code climate coverage
  • Loading branch information
p-galligan authored Jun 20, 2019
2 parents 13cf020 + ed7f670 commit e44cdce
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 gemini/config.py.example gemini/config.py
- docker-compose up -d
- sleep 20s
- docker-compose exec gemini-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 gemini-web python manage.py test
- docker-compose exec gemini-web coverage run manage.py test
after_script:
- docker-compose exec gemini-web coverage xml
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit e44cdce

Please sign in to comment.