language: python python: - "3.7" env: global: - CC_TEST_REPORTER_ID=$CODECLIMATE - username=$username - password=$password dist: xenial addons: chrome: stable firefox: latest before_install: - "python setup.py install" install: - pip install coverage - pip install coveralls pyyaml 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: - coverage run --source=lib -m pytest tests/test_*.py -v - coverage xml after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT - coveralls