forked from Azure/WALinuxAgent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 1.09 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
---
os: linux
dist: xenial
language: python
env:
- NOSEOPTS="--no-skip" SETUPOPTS=""
# Add SETUPOPTS="check flake8" to enable flake8 checks
matrix:
allow_failures:
- python: nightly
# exclude the default "python" build - we're being specific here...
exclude:
- python:
env:
- NOSEOPTS="--no-skip" SETUPOPTS="check flake8"
include:
- python: 2.6
dist: trusty
env:
- NOSEOPTS="--no-skip" SETUPOPTS=""
- python: 2.7
- python: 3.4
- python: 3.6
- python: 3.7
env:
- >-
NOSEOPTS="--no-skip --with-coverage --cover-inclusive
--cover-min-percentage=60 --cover-branches
--cover-package=azurelinuxagent --cover-xml"
SETUPOPTS=""
- python: nightly
install:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
script:
# future: - pylint setup.py makepkg.py azurelinuxagent/
- nosetests $NOSEOPTS tests
- if [ ! -z "$SETUPOPTS" ]; then /usr/bin/env python setup.py $SETUPOPTS; fi
after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then codecov; fi