This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
172 lines (158 loc) · 5.21 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
171
172
language: python
matrix:
include:
- os: linux
python: 2.7
sudo: required
dist: xenial
env:
- PY=2.7
# https://www.python.org/dev/peps/pep-0494/
- os: linux
python: 3.6
sudo: required
dist: xenial
env:
- PY=3.6
# https://www.python.org/dev/peps/pep-0537/
- os: linux
python: 3.7
sudo: required
dist: xenial
env:
- PY=3.7
# https://www.python.org/dev/peps/pep-0569/
- os: linux
python: 3.8
sudo: required
dist: xenial
env:
- PY=3.8
- os: osx
language: generic
env:
- PY_VERSION=2.7.18
- os: osx
language: generic
env:
- PY_VERSION=3.6.12
- os: osx
language: generic
env:
- PY_VERSION=3.7.9
- os: osx
language: generic
env:
- PY_VERSION=3.8.7
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -qq update;
sudo apt-get install -y \
libportmidi-dev \
libsdl-image1.2-dev \
libsdl-mixer1.2-dev \
libsdl-ttf2.0-dev \
libsdl1.2-dev \
libsoundtouch-dev \
libvorbis-dev
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install \
glib \
libvorbis \
portmidi \
sdl \
sdl_image \
sdl_mixer \
sdl_ttf;
# soundtouch
wget https://www.surina.net/soundtouch/soundtouch-2.0.0.zip;
unzip soundtouch-2.0.0.zip;
cd soundtouch;
./bootstrap;
./configure;
make;
make install;
cd ..;
fi
install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
#brew install pyenv;
brew upgrade pyenv;
brew install pyenv-virtualenv;
#pyenv install --list;
pyenv install $PY_VERSION;
#pyenv local $PY_VERSION;
eval "$(pyenv init -)";
eval "$(pyenv virtualenv-init -)";
export PYENV_VERSION=$PY_VERSION;
export PATH="/Users/travis/.pyenv/shims:${PATH}";
pyenv virtualenv $PY_VERSION venv;
pyenv activate venv;
fi
- python --version
- pip --version
- pip install --upgrade pip wheel
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install -U py; fi # for pytest
- pip install cython
before_script:
- (cd fretwork && python setup.py sdist bdist_wheel)
- (cd fretwork && pip wheel -w wheelhouse --no-deps .)
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# auditwheel
if [[ "$PY" == "2.7" ]]; then
## python3 virtualenv
virtualenv -p python3 venv
source venv/bin/activate
python --version
fi
## install patchelf
PATCHELF_VERSION=6bfcafbba8d89e44f9ac9582493b4f27d9d8c369
curl -sL -o patchelf.tar.gz https://github.com/NixOS/patchelf/archive/$PATCHELF_VERSION.tar.gz
tar -xzf patchelf.tar.gz
(cd patchelf-$PATCHELF_VERSION && ./bootstrap.sh && ./configure && make && sudo make install)
rm -rf patchelf.tar.gz patchelf-$PATCHELF_VERSION
## install
pip install auditwheel
## repair
mkdir -p out
for whl in fretwork/dist/*.whl; do
echo $whl
auditwheel repair $whl -w out/
cp $whl out/
done
chmod -R a+rwX out
if [[ "$PY" == "2.7" ]]; then
deactivate
source ~/virtualenv/python2.7/bin/activate
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# delocate
## install
pip install delocate
## list lib dependencies
delocate-listdeps fretwork/dist/*.whl
echo "in repair_wheelhouse, executing delocate-wheel"
## copies lib dependencies into wheel
delocate-wheel fretwork/dist/*.whl
## add platform tags
delocate-addplat --rm-orig -x 10_9 -x 10_10 fretwork/dist/*.whl
mv fretwork/dist out
fi
- echo `ls -l out`
script:
- pip install out/*.whl
#- pip install pytest
#- pytest fretwork/tests
#- python -c "from fretwork import mixstream"
deploy:
provider: releases
api_key:
secure: ZBNSpg8tQmheUx9Mr44Pz8bT/FwUMfXn8aawD4iAWIfFI2IVB8kcS7IrBVsxqVzgzmLdNt16VXBGDIWiqN2330ejKPJ4VbYqlurpwj9ZZ7gowhYGTZh8Oz9pW9RbK61PN6ZbE4/zWl85IUiiy4nn/pm5fQJ4muAZjzo9iQRxK+QlwdSUSc7f29vAkRegKIHo5Igt83mOQYVmSr7WP0QLVr7psYEdoc2fLEkQKMjIbDVJ0QyYtBA7ET3UE1nOg87YR0Ph9cQs7oGITgguakGS3SbQqNzcLDNk+s3r+nJ1N9XDhUufZ/nCyTo7i8sHXyOOKcS/gB5dA1yMCj7/wf+c0sMGI8CBabvHtzVtDqwobRa1qhbLkcL1zFxyQ+NpuobzeAPgfTHvFfRbLTf9tc+Wi+MEWLl9pmuU5KV+ErhqImWI1PcA9FiiKKQwK/UUBqYoVmJ2+f5tVf0w5Ar5oVj/8qIT+AdsdCeuym2EGFfN7p8f/ityq9HSdSlDOudb8Zh/e2+ZEHxoYYmYRTVaGjmrEKzVW8A8gNYWF0hAFjL2oimzlOM8cdu2gOwAsLgfBAzQkDfvnOnMV5KayrKg6bhn7/7TL2nsgwFloItsEjEDEFbbf8CmQmey3wTNCa3jdOzb9SYzQFtlNCvEgmRovWZS0NAqo39s/ltyKK1fDox9FYU=
file_glob: true
file: out/*
skip_cleanup: true
draft: true