forked from robotpy/robotpy-ctre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (46 loc) · 1.01 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
language: python
dist: xenial
python:
- "3.6"
- "3.7"
- "3.8"
install:
- pip install pytest coverage header2whatever pytest-cov
- python setup.py sdist
- "pip install dist/robotpy-ctre-*.tar.gz"
script:
- RUNCOVERAGE=1 tests/run_tests.sh
jobs:
include:
# Check to see if the compilation succeeds
- python: "3.7"
install:
- FORCE_HAL_INSTALL=1 pip install pybind11 header2whatever robotpy-hal-roborio
script:
- TRAVIS_BUILD=1 python setup.py sdist build
- stage: format-check
python:
- "3.6"
install:
- pip install black
script:
- black --check --diff .
- stage: deploy-pypi
python: "3.6"
if: tag IS present
install:
- pip install header2whatever
script: skip
deploy:
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
on:
tags: true
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/2fb1c026e64fdd70d27b
on_success: change
on_failure: always
on_start: never