forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (71 loc) · 2.17 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
branches:
only:
- /release-.+/
- travis
language: python
arch: arm64-graviton2
#
# https://docs.travis-ci.com/user/reference/focal/
#
dist: focal
virt: vm
group: edge
services: docker
env:
global:
- REPO_DIR=gensim
- BUILD_COMMIT=HEAD
- UNICODE_WIDTH=32
- PLAT=aarch64
- MB_ML_VER=2014
- SKIP_NETWORK_TESTS=1
- DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
#
# The contents of this file mirror the linux_testenv list
# in gensim's setup.py. I can't think of a better way to include
# them here for now. They'll get picked up by the multibuild stuff
# running in multibuild/common_utils.sh.
#
- TEST_DEPENDS="pytest mock cython nmslib pyemd testfixtures Morfessor==2.0.2a4 python-levenshtein==0.12.0 visdom==0.1.8.9 scikit-learn"
matrix:
#
# See .github/workflows/build-wheels.yml for a discussion of why we
# handle numpy versions explicitly.
#
- os: linux
env:
- MB_PYTHON_VERSION=3.6
#
# scipy 1.7.0 wheels not available for Py3.6, so we have to build using
# an older version.
#
- BUILD_DEPENDS="numpy==1.19.2 scipy==1.5.3"
- os: linux
env:
- MB_PYTHON_VERSION=3.7
- BUILD_DEPENDS="numpy==1.19.2 scipy==1.7.0"
- os: linux
env:
- MB_PYTHON_VERSION=3.8
- BUILD_DEPENDS="numpy==1.19.2 scipy==1.7.0"
- os: linux
env:
- MB_PYTHON_VERSION=3.9
#
# oldest-supported-numpy does not seem to handle this particular case
# (aarch64, Py3.9) explicitly, but I've double-checked that wheels for
# this numpy release are available via PyPI.
#
- BUILD_DEPENDS="numpy==1.19.3 scipy==1.7.0"
before_install:
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
install:
- build_wheel $REPO_DIR $PLAT
script:
- install_run $PLAT
after_script:
- 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 --no-enable-cdn