forked from TeamPyOgg/PyOgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (88 loc) · 3.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
language: python
python:
- 3.8
before_install:
- |
if [[ "$TRAVIS_OS_NAME" = windows ]]; then
choco install make
choco install python --version 3.8.0
export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
# make sure it's on PATH as 'python3'
ln -s /c/Python38/python.exe /c/Python38/python3.exe
fi
install:
- python3 -m pip install --upgrade twine cibuildwheel numpy pytest mypy sphinx sphinx-rtd-theme
script:
- python3 setup.py install
- pip3 list
- pytest -v tests
- mypy -p pyogg
- mypy tests/*.py
- mypy examples/*.py
- cd docs; make html
- cd ..
- cd examples; ./run-all-non-playing-examples.sh
- cd ..
stages:
- test
- name: deploy
if: tag IS PRESENT AND repo = TeamPyOgg/PyOgg
jobs:
include:
- os: windows
language: shell
name: Test on Windows
- os: osx
language: shell
name: Test on MacOS
- os: linux
dist: xenial
language: python
name: Test on Linux (Ubuntu Xenial)
before_install:
- sudo apt-get -y install libopus0 libopusfile0 libvorbisfile3
- stage: deploy
services: docker
install: python3 -m pip install twine cibuildwheel
script:
- python3 -m cibuildwheel --output-dir ./wheelhouse
- ls wheelhouse
after_success: |
if [[ $TRAVIS_TAG ]]; then python3 -m pip install twine; python3 -m twine upload --skip-existing wheelhouse/*.whl; fi
- stage: deploy
os: osx
language: shell
install: python3 -m pip install twine cibuildwheel
script:
- python3 -m cibuildwheel --output-dir ./wheelhouse
- ls wheelhouse
after_success: |
if [[ $TRAVIS_TAG ]]; then python3 -m pip install twine; python3 -m twine upload --skip-existing wheelhouse/*.whl; fi
- stage: deploy
os: windows
language: shell
install: python3 -m pip install twine cibuildwheel
script:
- python3 -m cibuildwheel --output-dir ./wheelhouse
- ls wheelhouse
after_success: |
if [[ $TRAVIS_TAG ]]; then python3 -m pip install twine; python3 -m twine upload --skip-existing wheelhouse/*.whl; fi
deploy:
provider: releases
api_key:
secure: uDUvWospX5rLzOoYxtSsg1hKaP40iSXhX+QGRzZfa9izA1t+QeAUthjA//mPzqbovsmiWs+G2d8/P0mluD+xDg9KV9KXXw+Vr7PvjnBw7awRO0Qp7KXtZEF7EXkMfh55Xqi2FaTQZdOTZ4GM8bzquW11mNKoWililkbySFh2iV4dWDv50fQqNP+HxVo9St0y3/FVdSrlVONTWiX/HsON/Hv9FUZmUOFS8u2U1NHrtA2TP7lqbvOMwO/FS2B6aJGzMBm+vj0X8bI7AGQT6VXTPpsokJCbU+WBPmJ39VEFUDFzNftfv2G0CaMLSfgD6H4QzgB37PQKeG6npe1ikN596ADntbA20tftESWutt7RxBNIfMkC020rc3qRQs0Bxl6Kw4CfrQ3NIei9BVqlb+5YtopKOtdXSDl+/UyhoBhBG1xKiIEob+BGJ6hDNM2EFsy+LxfCKcjANDKWnUro1Ti5eDQmwRkBq1+TrjHAKzq13ey7U5gj7HcB+UwUw7ENvTeIvQQL6cKTCUdIYTeM7PNSgXyPDLkWhOSQxC3oGla0g7Zob+A3dNwd7dTOEAxUpxSE0X2UKHzwFwPMY8tFSksPL4fHA7rzN1cirehttWWNSlZhGjIwn88joFbTL/klFCnWnpJ2g2TXngvvbpN24s3epe80jTdF5Y4WO5rvSpyn2F4=
file: wheelhouse/*
file_glob: true
skip_cleanup: true
on:
repo: TeamPyOgg/PyOgg
tags: true
env:
global:
- CIBW_BUILD=cp38-*
- CIBW_TEST_REQUIRES="pytest numpy"
- CIBW_TEST_COMMAND="pytest {project}/tests"
- CIBW_MANYLINUX_X86_64_IMAGE=manylinux1
- CIBW_MANYLINUX_I686_IMAGE=manylinux1
- TWINE_USERNAME=__token__
# TWINE_PASSWORD is stored on travis-ci.com