This repository has been archived by the owner on May 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
139 lines (117 loc) · 3.89 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
env:
global:
- REPO_DIR=gensim
- BUILD_COMMIT=5b5b54592a6aaf3c0f40f162351d11d3b64c9b98
- UNICODE_WIDTH=32
- GLOBAL_DEPENDS="six smart_open"
- TEST_COMMON="pytest pytest-rerunfailures mock cython testfixtures python-Levenshtein>=0.10.2 Morfessor==2.0.2a4"
- BUILD_DEPENDS="numpy==1.11.3 scipy==1.0.0 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="${BUILD_DEPENDS} ${TEST_COMMON} scikit-learn"
- MACOSX_DEPLOYMENT_TARGET=10.9
language: python
# The travis Python version is unrelated to the version we build and test
# with. This is set with the MB_PYTHON_VERSION variable.
python: 3.5
os: linux
dist: trusty
services: docker
jobs:
# Linux
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- PLAT=x86_64
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- PLAT=i686
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- PLAT=x86_64
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- PLAT=i686
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- BUILD_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.7
- PLAT=x86_64
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- BUILD_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.7
- PLAT=i686
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- BUILD_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.8
- PLAT=x86_64
- SKIP_NETWORK_TESTS=1
- os: linux
env:
- BUILD_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.8
- PLAT=i686
- SKIP_NETWORK_TESTS=1
# MacOS
- os: osx
language: generic
env:
- MB_PYTHON_VERSION=3.5
- SKIP_NETWORK_TESTS=1
- os: osx
language: generic
osx_image: xcode10.1
env:
- MB_PYTHON_VERSION=3.6
- SKIP_NETWORK_TESTS=1
# Attempt to fix 'incompatibility' between sklearn & our base numpy (by pinning sklearn to older version)
- TEST_DEPENDS="${BUILD_DEPENDS} ${TEST_COMMON} scikit-learn==0.21.3"
- os: osx
language: generic
env:
- BUILD_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.14.5 scipy==1.1.0 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.7
- SKIP_NETWORK_TESTS=1
- os: osx
language: generic
env:
- BUILD_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS}"
- TEST_DEPENDS="numpy==1.17.3 scipy==1.3.2 ${GLOBAL_DEPENDS} ${TEST_COMMON} scikit-learn"
- MB_PYTHON_VERSION=3.8
- SKIP_NETWORK_TESTS=1
before_install:
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- clean_code $REPO_DIR $BUILD_COMMIT
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
# Upload wheels at the end of process (no matters, success or fail)
after_success:
- ls -laht ${TRAVIS_BUILD_DIR}/wheelhouse/
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --local-folder ${TRAVIS_BUILD_DIR}/wheelhouse/ --no-ssl-check gensim-wheels --provider S3
after_failure:
- ls -laht ${TRAVIS_BUILD_DIR}/wheelhouse/
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --local-folder ${TRAVIS_BUILD_DIR}/wheelhouse/ --no-ssl-check gensim-wheels --provider S3
notifications:
email:
on_success: always
on_failure: always