-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
52 lines (50 loc) · 1.22 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
language: cpp
os: linux
dist: focal
jobs:
include:
- name: Linux
stage: make
services: docker
script: docker run --rm -v ${TRAVIS_BUILD_DIR}:/io:rw -w="/io" quay.io/pypa/manylinux1_x86_64 /io/build_linux.sh
workspaces:
create:
name: linux
paths: wheelhouse
- name: macOS-python2
stage: make
os: osx
env: PYTHON=2.7
compiler: clang
install: pyenv install -s 3.7-dev
script: ./build_osx.sh
- name: macOS-python3
stage: make
os: osx
env: PYTHON=3.7
compiler: clang
install: pyenv install -s 3.7-dev
script: ./build_osx.sh
- name: Windows
stage: make
os: windows
language: sh
script: ./build_win.sh
workspaces:
create:
name: windows
paths: C:/wheelhouse
- name: deploy pypi
stage: deploy
services: docker
workspaces:
use:
- linux
- windows
script:
- mv C:/wheelhouse/* wheelhouse/
- docker run --rm -e PYPI_USER -e PYPI_PASS -v ${TRAVIS_BUILD_DIR}:/io:rw -w="/io" quay.io/pypa/manylinux1_x86_64 /io/pypi_upload.sh
stages:
- make
- name: deploy
if: tag IS present