forked from mypyc/mypy_mypyc-wheels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
122 lines (114 loc) · 3.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
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
#if: tag IS present
language: generic
sudo: required
services:
- docker
env:
global:
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- PLAT=x86_64
matrix:
include:
- os: linux
arch: arm64-graviton2
dist: focal
virt: vm
group: edge
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- MB_PYTHON_VERSION=3.5
- MB_ML_VER=2014
- PLAT=aarch64
- os: linux
arch: arm64
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- MB_PYTHON_VERSION=3.6
- MB_ML_VER=2014
- PLAT=aarch64
- os: linux
arch: arm64
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- MB_PYTHON_VERSION=3.7
- MB_ML_VER=2014
- PLAT=aarch64
- os: linux
arch: arm64
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- MB_PYTHON_VERSION=3.8
- MB_ML_VER=2014
- PLAT=aarch64
- os: linux
arch: arm64
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64
- MB_PYTHON_VERSION=3.9
- MB_ML_VER=2014
- PLAT=aarch64
- os: linux
services:
- docker
env: MB_PYTHON_VERSION=3.5
#- os: linux
# services:
# - docker
# env: MB_PYTHON_VERSION=3.6
#- os: linux
# services:
# - docker
# env: MB_PYTHON_VERSION=3.7
#- os: linux
# services:
# - docker
# env: MB_PYTHON_VERSION=3.8
#- os: osx
# env: MB_PYTHON_VERSION=3.5
#- os: osx
# env: MB_PYTHON_VERSION=3.6
#- os: osx
# env: MB_PYTHON_VERSION=3.7
#- os: osx
# env:
# - MB_PYTHON_VERSION=3.8
# - MB_PYTHON_OSX_VER=10.9
# - MB_ML_VER=2010
before_install: |
set -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull $DOCKER_IMAGE
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
source multibuild/common_utils.sh
source multibuild/travis_steps.sh
before_install
fi
install: |
# Output something every 10 minutes or Travis kills the job
while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
bg_pid=$!
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run --rm -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/build-linux-wheels.sh $MB_PYTHON_VERSION
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export MYPY_USE_MYPYC=1
export MYPYC_OPT_LEVEL=3
clean_code mypy HEAD
build_bdist_wheel mypy $PLAT
(cd mypy && ./misc/test_installed_version.sh ../wheelhouse/*.whl)
fi
kill $bg_pid
notifications:
#email:
#recipients:
#- sully@msully.net
#on_success: never # default: change
#on_failure: always # default: always
deploy:
#provider: releases
#api_key:
#secure: KM6lZpvVJ36DNXgCOrnN9CrD+e2Ed9PkR8Ij8aLOzMKiq7+blhWRyA4ZEuF0N0zTiN29nmpKBsC1Qz4II/kZSAFrJQKf32ef67ypQ0XFCJYw4rqgsOcuZqfBf+ZqHVv3IWU3Kb33GoOysG945TyFQ3JFEeN0hWRUtVm8Tav0ths9Ut2+GyOt/jGn+qRcG6xqqt069f65eXC+sGSwcuVlqb1x2kLT31AKOQzMMTS8rN3zFhfGn/Pl/MLobS0DTfm0omWac5WnFW1Bib31zFzbOm19j6PmFc1kNwhpZWCY1yGn8B7QEx/Eq1VKPTu2FC5nQOkBpQILUotDbNfweHcX2w81z2bEkhCOIvu9lVVxOHFaEyDG2a6l9BlgtZuzeLM2loZogjHPHeO7mG3rzj9mq8kRWEIm+xq1xRaSCFDAS9He9iD+Pq5xJ+7yAKwXNcoQoeaLqRtwCgQABpb5RxTwiMUKy9+L8zXNuDj8sMDDmJbfpbegtsb/28oDi1ToZjaCBdKhQ0BjvrUeCmM1bI/4Rb1OkolV/9rx/YaRYACdUw6+WvMQRr9imJXPh7iIfJB0Mz4O/Ptt80jbd6FCXhz1eqR3svhQlFUi5WMytyXz0zCEPKV0vh/F+w6JcxGezeaC9QAS1ei3bG7xU2XztcWSdPrbYlLFe2WBlXRgHtKPi60=
#file_glob: true
#file: wheelhouse/*.whl
#skip_cleanup: true
#on:
#tags: true