forked from deepmodeling/deepmd-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
99 lines (99 loc) · 2.25 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
language: python
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- gcc-5
- g++-5
- gcc-6
- g++-6
- gcc-7
- g++-7
- gcc-8
- g++-8
jobs:
include:
- stage: unit tests
python: 3.6
env:
- CC=gcc-4.8
- CXX=g++-4.8
- TENSORFLOW_VERSION=1.8
- python: 3.6
env:
- CC=gcc-4.8
- CXX=g++-4.8
- TENSORFLOW_VERSION=1.12
- python: 3.6
env:
- CC=gcc-4.8
- CXX=g++-4.8
- TENSORFLOW_VERSION=1.14
- python: 3.6
env:
- CC=gcc-5
- CXX=g++-5
- TENSORFLOW_VERSION=1.14
- python: 3.6
env:
- CC=gcc-8
- CXX=g++-8
- TENSORFLOW_VERSION=1.14
- python: 3.7
env:
- CC=gcc-5
- CXX=g++-5
- TENSORFLOW_VERSION=1.14
- python: 3.7
env:
- CC=gcc-6
- CXX=g++-6
- TENSORFLOW_VERSION=1.14
- python: 3.7
env:
- CC=gcc-7
- CXX=g++-7
- TENSORFLOW_VERSION=1.14
- python: 3.7
env:
- CC=gcc-8
- CXX=g++-8
- TENSORFLOW_VERSION=1.14
- python: 3.7
env:
- CC=gcc-5
- CXX=g++-5
- TENSORFLOW_VERSION=2.1
- python: 3.7
env:
- CC=gcc-8
- CXX=g++-8
- TENSORFLOW_VERSION=2.1
- stage: build whls
services: docker
env:
- TWINE_USERNAME=__token__
- CIBW_BUILD="cp36-* cp37-*"
- CIBW_BEFORE_BUILD="pip install tensorflow && sed -i 's/libresolv.so.2\"/libresolv.so.2\", \"libtensorflow_framework.so.2\"/g' \$(find / -name policy.json)"
- CIBW_SKIP="*-win32 *-manylinux_i686"
- CC=gcc-7
- CXX=g++-7
- TENSORFLOW_VERSION=2.1
install:
- python -m pip install twine cibuildwheel==1.1.0 scikit-build setuptools_scm
script:
- python -m cibuildwheel --output-dir wheelhouse
- python setup.py sdist
after_success:
- if [[ $TRAVIS_TAG ]]; then python -m twine upload wheelhouse/*; python -m twine upload dist/*.tar.gz; fi
before_install:
#- pip install --upgrade pip
- pip install --upgrade setuptools
- pip install tensorflow==$TENSORFLOW_VERSION
install:
- pip install --verbose .[test]
script:
- cd source/tests && python -m unittest