-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
80 lines (67 loc) · 1.4 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
language: python
cache: pip
_helpers:
- &mainstream-python '3.6'
- &linux-py37
python: '3.7'
os: linux
dist: xenial
sudo: required
- &packaging-base
stage: package
install: $PIP install cibuildwheel==0.10.0
script: cibuildwheel --output-dir dist
- &packaging-env
CIBW_SKIP: "'cp27-* cp33-*'"
CIBW_BEFORE_BUILD: "'pip install -r dev-requirements.txt'"
- &upload-to-pypi
deploy:
provider: pypi
user: gagoman
password: $PYPI_PASSWORD
skip_cleanup: true
skip_existing: true
on:
tags: true
all_branches: true
matrix:
fast_finish: true
include:
- python: '3.4'
env: TOXENV=py34
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
- <<: *linux-py37
env: TOXENV=py37
# meta
- name: 'style'
python: *mainstream-python
env: TOXENV=style
# distribution
- name: 'linux wheels'
<<: *linux-py37
<<: *packaging-base
<<: *upload-to-pypi
services:
- docker
env:
<<: *packaging-env
PIP: pip
- name: 'osx wheels'
language: generic
os: osx
<<: *packaging-base
<<: *upload-to-pypi
env:
<<: *packaging-env
PIP: pip2
install: pip install tox
script: tox
stages:
- name: test
- name: package
if: tag IS present
notifications:
email: false