-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
161 lines (141 loc) · 4.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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# After changing this file, check it on:
# http://lint.travis-ci.org/
os: linux
dist: focal
language: python
branches:
except:
- /^mlperf_.*/ # Exclude tags starting with "mlperf_"
matrix:
fast_finish: true
allow_failures:
# - os: windows # tar confused by colon in C:\... names - see https://steve-parker.org/linux/tar-colon-filename/
- os: freebsd # missing bash
- arch: ppc64le # missing torchvision 0.10.1
- arch: s390x # missing torchvision 0.10.1
include:
- language: python
python: "3.11"
dist: jammy
env:
- PACKAGE_INSTALL_AND_IMPORT=on
- C_COMPILE_AND_RUN=on
- PYTHON_EXE=python
- language: python
python: "3.11"
dist: jammy
env:
- TF_CLASSIFY=on
- PYTHON_EXE=python
- language: python
python: "3.11"
dist: jammy
env:
- PYTORCH_CLASSIFY=on
- PYTHON_EXE=python
- language: python
python: "3.10.8"
dist: jammy
env:
- ONNX_CLASSIFY=on
- PYTHON_EXE=python
- language: python
python: 3.9
env:
- PYTORCH_BERT_DEMO=on
- PYTHON_EXE=python
- language: python
python: 3.9
env:
- ONNX_BERT_SQUAD=on
- PYTHON_EXE=python
- os: osx
osx_image: xcode12.5 # Python 3.9.5
language: shell # 'language: python' is an error on Travis CI macOS
env:
- ONNX_CLASSIFY=on
- PACKAGE_INSTALL_AND_IMPORT=on
- C_COMPILE_AND_RUN=on
- PYTHON_EXE=python3
- name: "Python 3.9 on Windows, ONNX_BERT_SQUAD"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
env:
- ONNX_BERT_SQUAD=on
- PYTHON_EXE=python3
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
before_install:
- choco install python39
- cmd <<< "mklink C:\\Python39\\python3.exe C:\\Python39\\python.exe"
- cmd <<< "mklink C:\\Python39\\python3.9.exe C:\\Python39\\python.exe"
- choco install gzip
- python -m pip install --upgrade pip
- ln -s /c/Windows/System32/tar.exe /c/Python39
- language: python
python: 3.8
env:
- ONNX_DETECTION=on
- PYTHON_EXE=python
- language: python
python: 3.8
env:
- PYTORCH_CLASSIFY=on
- PYTHON_EXE=python
- language: python
python: "3.7.15"
env:
- TF_CLASSIFY=on
- PYTHON_EXE=python
- language: python
python: 3.6
env:
- ONNX_CLASSIFY=on
- PYTHON_EXE=python
- name: "Python 3.8 on FreeBSD"
os: freebsd
addons:
pkg:
- bash
language: python
python: 3.8
env:
- PYTHON_EXE=python
- name: "Python 3.6 on IBM Power"
arch: ppc64le
os: linux
language: python
python: 3.6
env:
- PYTHON_EXE=python
- C_COMPILE_AND_RUN=on
- name: "Python 3.6 on IBM Z"
arch: s390x
os: linux
language: python
python: 3.6
env:
- PYTHON_EXE=python
- C_COMPILE_AND_RUN=on
#before_install:
# work around cache dir owned by root (see https://travis-ci.community/t/7822/6)
#- sudo chown -fR $USER:$GROUP ~/.cache/pip/wheels
install:
- CWD=`pwd`
- PATH=$PATH:$CWD
- THIS_REPO_NAME=`basename $CWD`
- echo "TRAVIS_OS_NAME=${TRAVIS_OS_NAME}, TRAVIS_PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}"
- echo "CWD=${CWD}, THIS_REPO_NAME=${THIS_REPO_NAME}, PATH=${PATH}"
- which ${PYTHON_EXE}
- ${PYTHON_EXE} --version
- which git
- git --version
- wget https://raw.github.com/lehmannro/assert.sh/master/assert.sh
- axs byname pip , available_versions --package_name=numpy --force_binary+
- axs byname pip , available_versions --package_name=pillow --force_binary+
script:
- ${PYTHON_EXE} function_access.py
- ${PYTHON_EXE} param_source.py
- ${PYTHON_EXE} runnable.py
- ${PYTHON_EXE} stored_entry.py
- ${PYTHON_EXE} kernel.py
- bash test_axs.sh