-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
30 lines (30 loc) · 975 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: python
os: linux
dist: bionic
services:
- xvfb
# https://docs.travis-ci.com/user/gui-and-headless-browsers
python:
- "3.9"
# - "nightly"
install:
- pip install -r requirements.txt
- pip install coverage codacy-coverage
script:
- isort . --diff
- pycodestyle pylottosimu/ tests/ *.py*
- QT_QPA_PLATFORM=offscreen xvfb-run -a --server-args="-screen 0 1024x768x24" nosetests --with-coverage --cover-erase --cover-package=pylottosimu --cover-html
after_success:
- coverage report -m
- coverage xml
- export CODACY_PROJECT_TOKEN=c7c5048f9c0e4b74b529f9b72671c5cf
- python-codacy-coverage -r coverage.xml
notifications:
irc: false
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/2fdaa9e93e1a5b657bed
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always