-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml.old
51 lines (46 loc) · 1.46 KB
/
.travis.yml.old
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
notifications:
email: false
jobs:
include:
# perform a linux build
- services: docker
before_install:
- sudo apt update
- sudo apt install software-properties-common
- sudo add-apt-repository ppa:deadsnakes/ppa -y
- sudo apt update
- sudo apt remove python3.5-minimal -y
- sudo apt install python3.8
- sudo apt-get -y install python3-pip
- sudo apt-get -y install python3-setuptools
- python3 -m pip install --upgrade pip
- python3 -m pip install --upgrade setuptools
# and a mac build
- os: osx
language: shell
# and a windows build
- os: windows
language: shell
before_install:
# install Python 3 and make sure it's on PATH as 'python3'
- choco install python --version 3.8.0
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- ln -s /c/Python38/python.exe /c/Python38/python3.exe
- python3 -m pip install --upgrade pip
env:
global:
- TWINE_USERNAME=__token__
# Note: TWINE_PASSWORD is set to an API token in Travis settings
install:
- python3 -m pip install cibuildwheel==2.1.1
script:
# build the wheels, put them into './wheelhouse'
- python3 -m cibuildwheel --output-dir wheelhouse
- ls wheelhouse/
after_success:
# if the release was tagged, upload them to PyPI
- |
if [[ $TRAVIS_TAG ]]; then
python3 -m pip install twine
python3 -m twine upload wheelhouse/*.whl
fi