Skip to content

Commit

Permalink
Another attempt to get codecoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wshayes committed Jan 4, 2018
1 parent 6d335d0 commit e5febca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ install:
before_script:
- cp belbio_conf.yml.test belbio_conf.yml
- cp belbio_secrets.yml.test belbio_secrets.yml
- 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:
- make tests
script:
- make ci_tests
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
env:
global:
- CC_TEST_REPORTER_ID=be0b36e872b86350595ad3d79cde328a37e3943848f95dd39e0b50e2286cf1ce
- bash <(curl -s https://codecov.io/bash)
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ deploy_patch: update_parsers
bumpversion --allow-dirty patch
${deploy_commands}

publish:
setup.py upload

belspec_json:
belspec_yaml2json

Expand Down Expand Up @@ -62,6 +65,9 @@ $(VDIR)/parser%.py: $(VDIR)/bel%.ebnf
@echo Turning $< into $@
python bin/ebnf_to_parsers.py --ebnf_fn "$<"

ci_tests:
py.test -rs --cov=./bel -c tests/pytest.ini --color=yes --durations=10 --flakes --pep8 tests

tests: clean_pyc
py.test -rs --cov=./bel --cov-report html --cov-config .coveragerc -c tests/pytest.ini --color=yes --durations=10 --flakes --pep8 tests

Expand Down

0 comments on commit e5febca

Please sign in to comment.