forked from OpenGov/cython_hunspell
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
170 lines (170 loc) · 4.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
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
162
163
164
165
166
167
168
169
170
language: python
matrix:
include:
- os: linux
python: 3.6
env:
- CIBW_BUILD: cp36-*
- CIBW_BUILD_VERBOSITY: 3
- os: linux
python: 3.7
env:
- CIBW_BUILD: cp37-*
- CIBW_BUILD_VERBOSITY: 3
- os: linux
python: 3.8
env:
- CIBW_BUILD: cp38-*
- CIBW_BUILD_VERBOSITY: 3
- os: linux
python: 3.9
env:
- CIBW_BUILD: cp39-*
- CIBW_BUILD_VERBOSITY: 3
- os: linux
python: 3.10
env:
- CIBW_BUILD: cp310-*
- CIBW_BUILD_VERBOSITY: 3
- os: osx
language: shell
env:
- PYENV_VERSION: 3.6-dev
- CIBW_BUILD: cp36-*
- CIBW_BUILD_VERBOSITY: 3
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- HOMEBREW_NO_AUTO_UPDATE: 1
- os: osx
language: shell
env:
- PYENV_VERSION: 3.7-dev
- CIBW_BUILD: cp37-*
- CIBW_BUILD_VERBOSITY: 3
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- HOMEBREW_NO_AUTO_UPDATE: 1
- os: osx
language: shell
env:
- PYENV_VERSION: 3.8-dev
- CIBW_BUILD: cp38-*
- CIBW_BUILD_VERBOSITY: 3
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- HOMEBREW_NO_AUTO_UPDATE: 1
- os: osx
language: shell
osx_image: xcode12.2
env:
- PYENV_VERSION: 3.9-dev
- CIBW_BUILD: cp39-*
- CIBW_BUILD_VERBOSITY: 3
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- HOMEBREW_NO_AUTO_UPDATE: 1
- os: osx
language: shell
env:
- PYENV_VERSION: 3.10-dev
- CIBW_BUILD: cp310-*
- CIBW_BUILD_VERBOSITY: 3
- HOMEBREW_NO_INSTALL_CLEANUP: 1
- HOMEBREW_NO_AUTO_UPDATE: 1
- os: windows
language: shell
env:
- PYENV_VERSION: 3.6.8
- PYENV_PATH: "/c/Python36"
- CIBW_BUILD: cp36-*
- CIBW_BUILD_VERBOSITY: 3
- MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
- os: windows
language: shell
env:
- PYENV_VERSION: 3.7.8
- PYENV_PATH: "/c/Python37"
- CIBW_BUILD: cp37-*
- CIBW_BUILD_VERBOSITY: 3
- MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
- os: windows
language: shell
env:
- PYENV_VERSION: 3.8.5
- PYENV_PATH: "/c/Python38"
- CIBW_BUILD: cp38-*
- CIBW_BUILD_VERBOSITY: 3
- MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
- os: windows
language: shell
env:
- PYENV_VERSION: 3.9.0
- PYENV_PATH: "/c/Python39"
- CIBW_BUILD: cp39-*
- CIBW_BUILD_VERBOSITY: 3
- MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
- os: windows
language: shell
env:
- PYENV_VERSION: 3.10.0
- PYENV_PATH: "/c/Python310"
- CIBW_BUILD: cp310-*
- CIBW_BUILD_VERBOSITY: 3
- MSBUILD_PATH: C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin
before_install:
- |-
case $TRAVIS_OS_NAME in
linux)
sudo apt install -y autoconf automake autopoint libtool
pip install -U pip
python --version
;;
osx)
brew install autoconf automake libtool gettext
brew link gettext --force
eval "$(pyenv init -)"
pyenv install --list
pyenv install $PYENV_VERSION
pyenv global $PYENV_VERSION
pyenv rehash
pip install -U pip
python --version
;;
windows)
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64"
choco install python --version $PYENV_VERSION
export PATH="$PYENV_PATH:$PYENV_PATH/Scripts:$MSBUILD_PATH:$PATH"
python -m ensurepip
pip install -U pip
python --version
;;
esac
install:
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install -r requirements-test.txt
- pip install cibuildwheel
- touch .cibuildwheel
- python setup.py build
- CYHUNSPELL_FORCE_BUILD=0 pip install .
- rm -rf build
- rm -rf external/build
script:
- python -m pytest -vv
- rm hunspell/*.so || true
- rm hunspell/*.dylib || true
- rm hunspell/*.pyd || true
- python -m cibuildwheel --output-dir wheelhouse
- ls wheelhouse
# Print wheel contents
- for i in wheelhouse/*.whl; do echo "Listing file inside $i"; python -m zipfile -l $i; done
- if [ "${TRAVIS_TAG:-}" != "" ]; then python -m twine upload --skip-existing wheelhouse/*;
fi
notifications:
email:
recipients:
on_success: change
on_failure: always
env:
global:
- TWINE_USERNAME: __token__
- CYHUNSPELL_FORCE_BUILD: 1
- CIBW_ENVIRONMENT: CYHUNSPELL_FORCE_BUILD=1
- CIBW_DEPENDENCY_VERSIONS: latest