-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
81 lines (75 loc) · 2.03 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
language: python
sudo: false
# keep pypy first!
python:
- pypy
- '3.7-dev'
- '3.6'
- '3.5'
- '2.7'
- '3.4'
- pypy3.5-5.8.0
env:
global:
- CIBW_TEST_REQUIRES='pytest'
- CIBW_TEST_COMMAND='pytest -v {project}/test'
matrix:
- ADMESH=0.98.3
- ADMESH=0.98.2
cache:
directories:
- $HOME/.cache/pip
- $HOME/build/admesh/python-admesh/admesh-$ADMESH
- .eggs
install:
- if [ ! -f admesh-$ADMESH/.libs/admesh ]; then
wget https://github.com/admesh/admesh/releases/download/v$ADMESH/admesh-$ADMESH.tar.gz;
tar -zxf admesh-$ADMESH.tar.gz;
cd admesh-$ADMESH;
"./configure";
make;
mkdir src/admesh;
cp src/stl.h src/admesh/stl.h;
cd ..;
fi
- pip install tox-travis Cython
script: LD_LIBRARY_PATH=$PWD/admesh-$ADMESH/.libs LDFLAGS=-L$PWD/admesh-$ADMESH/.libs CFLAGS=-I$PWD/admesh-$ADMESH/src tox
matrix:
include:
- sudo: required
services:
- docker
env: CIBW_SKIP='*i686'
CIBW_BEFORE_BUILD='rpm -q admesh-devel || yum install -y --nogpgcheck /project/travis/*.x86_64.rpm; {pip} install Cython'
install:
- pip install cibuildwheel==0.9.1
script:
- cibuildwheel --output-dir dist
- sudo: required
services:
- docker
env: CIBW_SKIP='*x86_64'
CIBW_BEFORE_BUILD='rpm -q admesh-devel || yum install -y --nogpgcheck /project/travis/*.i386.rpm; {pip} install Cython'
install:
- pip install cibuildwheel==0.9.1
script:
- cibuildwheel --output-dir dist
- os: osx
language: generic
env: CIBW_BEFORE_BUILD='{pip} install pytest-runner Cython'
before_install:
- brew install admesh
install:
- sudo pip2 install cibuildwheel==0.9.1 Cython twine
script:
- cibuildwheel --output-dir dist
fast_finish: true
deploy:
provider: pypi
skip_cleanup: true
user: hroncok
password:
secure: KAJOtf4HDXzL1LQsqGVPoHPniLcGcSwHvtp6gyiLUFwKmhIoqd7+ONSCVfDBCuIysOcsyXHGt1piMrMgyvuykupnFu43MDatWYk9KqaBs6/gyhoI/Ha7tavAiTMlaToEyNQGh7K6FZoVbVpEELtnuytRkWPqGfNTonEpWnmWMKw=
on:
tags: true
repo: admesh/python-admesh