forked from Juniper/py-junos-eznc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1 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
language: python
matrix:
include:
- python: 2.7
dist: trusty
- python: 3.5
dist: trusty
- python: 3.6
dist: trusty
- python: 3.7
dist: xenial
- python: 3.8
dist: xenial
- os: windows
language: shell
python: 3.7
before_install:
- choco install python3 --version=3.7.4
env:
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- TRAVIS_PYTHON_VERSION=3.7
addons:
apt:
packages:
- python-dev
- libxml2-dev
- libxslt1-dev
install:
- "pip install -r development.txt"
- "pip install -r requirements.txt"
- "pip install ."
- if [[ $TRAVIS_PYTHON_VERSION > 3.5 ]]; then pip install -U black; fi
script:
- if [[ $TRAVIS_PYTHON_VERSION > 3.5 ]]; then black --check --exclude=docs/* . ; fi
- nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
after_success:
coveralls
notifications:
email: false