-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
68 lines (68 loc) · 1.48 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
66
67
68
language: python
sudo: true
dist: xenial
cache: pip
before_cache:
- chown -R travis:travis $HOME/.cache/pip
stages:
- style
- test
- name: deploy
if: tag =~ .*
_install: &_install
- pip install --upgrade pip cython codecov
- pip install ortools$ortools
- pip install .[test]
_coverage: &_coverage
- coverage run setup.py test
matrix:
fast_finish: true
include:
- stage: style
python: 3.7
script:
- flake8
install:
- pip install -r requirements-lint.txt
- stage: test
python: 3.5
script: *_coverage
install: *_install
- stage: test
python: 3.6
env:
- ortools="==6.7.4973"
script: *_coverage
install: *_install
- stage: test
python: 3.6
script: *_coverage
install: *_install
- stage: test
python: 3.7
env:
- ortools="==6.9.5824"
script: *_coverage
install: *_install
- stage: test
python: 3.7
script: *_coverage
install: *_install
after_success:
- codecov
- stage: deploy
python: 3.5
install:
- pip install --upgrade pip
- pip install twine pyopenssl
script:
- test $(python3 setup.py --version) == $TRAVIS_TAG
- python3 setup.py bdist_wheel
deploy:
provider: script
script: twine upload dist/*py3-none-any* -u $PYPI_LOGIN -p $PYPI_PASS
skip_cleanup: true
on:
tags: true
notifications:
email: false