forked from Azure/WALinuxAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (60 loc) · 1.94 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
57
58
59
60
61
62
63
64
65
---
os: linux
dist: xenial
language: python
env:
- >-
NOSEOPTS="--verbose --with-timer" SETUPOPTS=""
matrix:
# exclude the default "python" build - we're being specific here...
exclude:
- python:
env:
- NOSEOPTS="" SETUPOPTS=""
include:
- python: 2.6
dist: trusty
env:
- NOSEOPTS="--verbose" SETUPOPTS=""
- python: 2.7
env:
- >-
NOSEOPTS="--verbose --with-timer" SETUPOPTS=""
PYLINTOPTS="--rcfile=ci/2.7.pylintrc"
PYLINTFILES="azurelinuxagent setup.py makepkg.py tests"
- python: 3.4
env:
- >-
NOSEOPTS="--verbose --with-timer" SETUPOPTS=""
PYLINTOPTS="--rcfile=ci/2.7.pylintrc"
PYLINTFILES="azurelinuxagent setup.py makepkg.py tests"
- python: 3.6
env:
- >-
NOSEOPTS="--verbose --with-timer" SETUPOPTS=""
PYLINTOPTS="--rcfile=ci/3.6.pylintrc"
PYLINTFILES="azurelinuxagent setup.py makepkg.py tests"
- python: 3.7
env:
- >-
NOSEOPTS="--verbose --with-timer" SETUPOPTS=""
PYLINTOPTS="--rcfile=ci/3.6.pylintrc"
PYLINTFILES="azurelinuxagent setup.py makepkg.py tests"
- python: 3.8
env:
- >-
NOSEOPTS="--verbose --with-coverage --with-timer --cover-inclusive
--cover-min-percentage=60 --cover-branches
--cover-package=azurelinuxagent --cover-xml"
SETUPOPTS=""
PYLINTOPTS="--rcfile=ci/3.6.pylintrc"
PYLINTFILES="azurelinuxagent setup.py makepkg.py tests"
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then ./ci/pylint_and_nosetests.sh; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then ./ci/nosetests_only.sh; fi
- if [ ! -z "$SETUPOPTS" ]; then /usr/bin/env python setup.py $SETUPOPTS; fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.8 ]]; then codecov; fi