-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (48 loc) · 1.3 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
sudo: false
os: linux
dist: focal
group: edge
arch: arm64-graviton2
virt: lxd
language: python
# Only build master branch, other branches will have a Pull Request build.
branches:
only:
- master
matrix:
include:
- python: 3.6
env: PY=3.6
- python: 3.7
env: PY=3.7
- python: 3.8
env: PY=3.8
- python: 3.9
env: PY=3.9
- os: linux
language: python
python: 3.9
env: TEST=lint
script:
- tox -e lint
after_success: # don't do uploading, no coverage data needed
- echo
- os: linux
language: python
python: 3.9
env: TEST=provider_check
script:
- pip install -U pip
- pip install coverage codecov toml
- coverage run ./tests/full_provider_test.py travis
- coverage xml -o coverage.xml
- codecov --required -X gcov -f coverage.xml --name "[Travis] Full Provider Check"
after_success: # we already uploaded, under a different name than below pattern
- echo
install:
- pip install -U tox codecov
script:
- tox -e py -- --cov-report xml:coverage.xml --cov
after_success:
- py_xy="$(python -c 'import sys; print(".".join(str(n) for n in sys.version_info[0:2]))')"
- codecov --required -X gcov -f coverage.xml --name "[Travis] $TRAVIS_OS_NAME-$py_xy"