forked from coin-or/python-mip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 1.03 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
language: python
cache: pip
install:
- python3 -m pip install cffi pytest flake8 networkx
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then python3 -m pip install black; fi
- python3 -m pip install .
script:
- if [[ $TRAVIS_PYTHON_VERSION != 3.5 ]]; then python3 -m black mip --line-length=79 --check; fi
- python3 -m flake8 mip --select=F401 --exclude=__init__.py # Look for unused imports
- python3 -m pytest test --verbose --color=yes --doctest-modules
- python3 -m pytest mip --verbose --color=yes --doctest-modules --ignore="mip/gurobi.py"
jobs:
include:
- name: "Python 3.5 on Linux"
os: linux
python: 3.5
- name: "Python 3.6 on Linux"
os: linux
python: 3.6
- name: "Python 3.7 on Linux"
os: linux
python: 3.7
- name: "Python 3.8 on Linux"
os: linux
python: 3.8
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS