dosage/.travis.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-13 10:58:05 +00:00
os: linux
2013-02-14 20:28:34 +00:00
language: python
2020-04-13 10:58:05 +00:00
jobs:
2019-12-31 15:23:40 +00:00
include:
- python: "3.5"
- python: "3.6"
- python: "3.7"
- python: "3.8"
env: "CC_TEST_REPORTER_ID=2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c"
2020-10-06 23:11:58 +00:00
- python: "3.9"
2016-05-21 14:06:11 +00:00
cache: pip
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
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"
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
python: 3.8