Skip to content

Commit 2e0ec77

Browse files
Consolidate linux and osx builds
1 parent fb85c3d commit 2e0ec77

File tree

1 file changed

+16
-40
lines changed

1 file changed

+16
-40
lines changed

.travis.yml

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
env:
2+
global:
3+
- CIBW_BEFORE_BUILD="pip install -U pip"
4+
- CIBW_TEST_REQUIRES="pytest!=3.3.0 pytest-cov codecov psutil coveralls"
5+
- CIBW_TEST_COMMAND="pytest --cov=lz4 {project}/tests && codecov --required ; coveralls"
6+
17
matrix:
28
include:
39
- name: linux-py27
@@ -9,6 +15,7 @@ matrix:
915
env:
1016
- PIP=pip
1117
- CIBW_BUILD=cp27-*
18+
1219
- name: linux-py34
1320
language: python
1421
python: 3.4
@@ -18,6 +25,7 @@ matrix:
1825
env:
1926
- PIP=pip
2027
- CIBW_BUILD=cp34-*
28+
2129
- name: linux-py35
2230
language: python
2331
python: 3.5
@@ -27,6 +35,7 @@ matrix:
2735
env:
2836
- PIP=pip3
2937
- CIBW_BUILD=cp35-*
38+
3039
- name: linux-py36
3140
language: python
3241
python: 3.6
@@ -36,6 +45,7 @@ matrix:
3645
env:
3746
- PIP=pip3
3847
- CIBW_BUILD=cp36-*
48+
3949
- name: linux-py37
4050
language: python
4151
python: 3.7
@@ -46,80 +56,46 @@ matrix:
4656
env:
4757
- PIP=pip3
4858
- CIBW_BUILD=cp37-*
59+
4960
- name: osx-py27
5061
os: osx
5162
language: generic
5263
env:
5364
- PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"
5465
- PIP=pip
5566
- CIBW_BUILD=cp27-*
56-
- CIBW_BEFORE_BUILD="${PIP} install -U pip"
57-
- CIBW_TEST_REQUIRES="pytest!=3.3.0 psutil"
58-
- CIBW_TEST_COMMAND="pytest {project}/tests"
59-
install:
60-
- ${PIP} install cibuildwheel==0.10.0
61-
script:
62-
- cibuildwheel --output-dir dist
67+
6368
- name: osx-py34
6469
os: osx
6570
language: generic
6671
env:
6772
- PIP=pip2
6873
- CIBW_BUILD=cp34-*
69-
- CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install pytest!=3.3.0 psutil"
70-
- CIBW_TEST_REQUIRES="pytest!=3.3.0 psutil"
71-
- CIBW_TEST_COMMAND="pytest {project}/tests"
72-
install:
73-
- ${PIP} install cibuildwheel==0.10.0
74-
script:
75-
- cibuildwheel --output-dir dist
74+
7675
- name: osx-py35
7776
os: osx
7877
language: generic
7978
env:
8079
- PIP=pip2
8180
- CIBW_BUILD=cp35-*
82-
- CIBW_BEFORE_BUILD="${PIP} install -U pip"
83-
- CIBW_TEST_REQUIRES="pytest!=3.3.0 psutil"
84-
- CIBW_TEST_COMMAND="pytest {project}/tests"
85-
install:
86-
- ${PIP} install cibuildwheel==0.10.0
87-
script:
88-
- cibuildwheel --output-dir dist
81+
8982
- name: osx-py36
9083
os: osx
9184
language: generic
9285
env:
9386
- PIP=pip2
9487
- CIBW_BUILD=cp36-*
95-
- CIBW_BEFORE_BUILD="${PIP} install -U pip"
96-
- CIBW_TEST_REQUIRES="pytest!=3.3.0 pytest-cov codecov psutil coveralls"
97-
- CIBW_TEST_COMMAND="pytest --cov=lz4 {project}/tests; codecov --required; coveralls"
98-
install:
99-
- ${PIP} install cibuildwheel==0.10.0
100-
script:
101-
- cibuildwheel --output-dir dist
88+
10289
- name: osx-py37
10390
os: osx
10491
language: generic
10592
env:
10693
- PIP=pip2
10794
- CIBW_BUILD=cp37-*
108-
- CIBW_BEFORE_BUILD="${PIP} install -U pip"
109-
- CIBW_TEST_REQUIRES="pytest!=3.3.0 psutil"
110-
- CIBW_TEST_COMMAND="pytest {project}/tests"
111-
install:
112-
- ${PIP} install cibuildwheel==0.10.0
113-
script:
114-
- cibuildwheel --output-dir dist
95+
11596
install:
116-
- ${PIP} install -U pip
11797
- ${PIP} install cibuildwheel==0.10.0
118-
- ${PIP} install codecov tox
11998
script:
120-
- tox tests
121-
- codecov --required
122-
- git stash --all # Restore fresh checkout
12399
- cibuildwheel --output-dir dist
124100
deploy:
125101
- provider: pypi

0 commit comments

Comments
 (0)