-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (55 loc) · 1.55 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
os: linux
language: python
python:
- 3.7
- 3.8
# TODO: Fix orjson/Rust
# - nightly
install:
- pip install -r requirements.txt
script:
- pytest tests
- pycodestyle pygot tests
- pydocstyle pygot tests
- pylint --rcfile=setup.cfg pygot tests # TODO: Remove rcfile when pylint 2.5.0 released
after_success:
- codecov
- python-codacy-coverage -r coverage.xml
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $DISCORD_WEBHOOK_URL
jobs:
include:
- name: 'Python: 3.7'
language: shell
os: windows
before_install:
- choco install python --version 3.7.6
env:
- PATH=/c/Python37:/c/Python37/Scripts:/c/tools/bin:$PATH**
- name: 'Python: 3.8'
language: shell
os: windows
before_install:
- choco install python --version 3.8.1
env:
- PATH=/c/Python38:/c/Python38/Scripts:/c/tools/bin:$PATH**
# TODO: Fix orjson/Rust
# - name: 'Python: nightly'
# language: shell
# os: windows
# before_install:
# - choco install python --pre
# env:
# - PATH=/c/Python39:/c/Python39/Scripts:/c/tools/bin:$PATH**
- stage: Success notification
name: Success notification
language: shell
install:
script:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $DISCORD_WEBHOOK_URL
after_success:
after_failure: