2013-02-14 20:28:34 +00:00
|
|
|
language: python
|
2019-12-31 15:23:40 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: "2.7"
|
|
|
|
- python: "3.5"
|
|
|
|
- python: "3.6"
|
|
|
|
- python: "3.7"
|
|
|
|
- python: "3.8"
|
|
|
|
env: "CC_TEST_REPORTER_ID=2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c"
|
2016-05-21 14:06:11 +00:00
|
|
|
cache: pip
|
2019-12-05 21:54:43 +00:00
|
|
|
git:
|
|
|
|
depth: false
|
2019-01-03 23:04:04 +00:00
|
|
|
dist: xenial
|
2019-12-31 15:23:40 +00:00
|
|
|
before_script:
|
|
|
|
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > cc-test-reporter"
|
|
|
|
- "chmod +x cc-test-reporter"
|
|
|
|
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter before-build; fi"
|
2013-02-14 20:32:20 +00:00
|
|
|
# command to install dependencies
|
|
|
|
install:
|
2017-11-28 00:27:40 +00:00
|
|
|
- pip install -U tox-travis setuptools codecov
|
2013-02-14 20:28:34 +00:00
|
|
|
# command to run tests
|
2016-03-20 18:43:48 +00:00
|
|
|
script: tox
|
2016-03-14 00:10:28 +00:00
|
|
|
after_success:
|
2019-12-31 15:23:40 +00:00
|
|
|
- codecov --file .tox/cov-*.xml
|
2019-12-31 17:12:25 +00:00
|
|
|
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter format-coverage --prefix $PWD/.tox/*/lib/*/site-packages --input-type coverage.py .tox/cov-*.xml; fi"
|
2019-12-31 15:23:40 +00:00
|
|
|
- "if [ -n \"$CC_TEST_REPORTER_ID\" ]; then ./cc-test-reporter upload-coverage; fi"
|
2015-04-20 22:01:23 +00:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#dosage"
|
|
|
|
use_notice: true
|
|
|
|
skip_join: true
|
2018-03-11 00:12:52 +00:00
|
|
|
# Push site to gh-pages branch
|
|
|
|
deploy:
|
|
|
|
- provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: .github/deploy.sh
|
|
|
|
on:
|
|
|
|
branch: master
|
2019-10-28 15:00:38 +00:00
|
|
|
python: 3.8
|