-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
61 lines (53 loc) · 2.25 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
# Travis CI configuration for PyGenSVM
jobs:
include:
- language: python
dist: xenial
python: "3.7"
services:
- docker
before_install:
- sudo apt-get update
- sudo apt-get install -y libatlas-base-dev liblapack-dev liblapacke-dev;
env:
- CC="gcc"
- PYTHON="python3"
- PIP="pip3"
- CIBW_BEFORE_BUILD="yum install -y atlas-devel lapack-devel && pip install numpy Cython"
- os: osx
osx_image: xcode11.3
language: generic
before_install:
- brew update
- brew install openblas
env:
- CC="gcc"
- CFLAGS="-fcommon" # avoids build errors on OSx
- PYTHON="python3"
- PIP="pip3"
- CIBW_BEFORE_BUILD="pip install numpy Cython"
env:
global:
- TWINE_USERNAME=__token__
- secure: "Mfu8zoi/Zxaao84+OiDD9Cy+Dzl+neB2+OFL4WK7NM40vtfHwpN7EMUaQN9FscizQqZZbsn3csCZ7+Lpgcgpq88dkFpsLbDJuX3DXUXmNZDjskzetbnE+IzOMqzugiIkm7tDSqoMpjkvtOOpTnhWQj/06BQy17NsTLZvtZGsqeoDFZby6PgfpQlU//RO+qcSds47lcQnw4jhgr5x0xPvczKL5FIY7Xwrv/C5kYhC14fadoKAdJI9tmD5lzlf2iW4dMYnB3gO4zlT5PUzhpO5yTpVIenv84d/LJUITBmVocbhzkYt4NIRIuuQAtLQ3STD/BJN+HyzhZKYhlxSgd6kKCjimJjGrv6ssemXnVn6DZNyDvY7bFuWNv1Xo/I3+XQAN/BGAGpPsgoMn6c3PwCbz/1K1DyJmcx1nkb8OtWFvu1QyzTk9ZLRg8S+QB5ouHYzd0P6q6TBs3CMIOHO9lEd5UmtNLHobqlvVOHCkDgUwkC/VHR+2UbkriUx2o5L96QyrcnaVqIsdX1XpwFtwcG/HjG/s+3qAvIHOQN55m8IkTsVCylF8zOzX0YBhPGG+H9YxshDZGu7uWFFSLFMn5GIt+50bSQ33nsrswUvxgMz926RA54K0NTn9HXy8Q9JCikA/HopS6as4id2s8u7Umdhu1lgrAxW3BEgX35VsH2Vw9M="
# PyGenSVM is Python3.6+
- CIBW_SKIP="cp27-* cp35-* pp*"
# Run the unit tests on the wheels that are created
- CIBW_TEST_REQUIRES="numpy Cython"
- CIBW_TEST_COMMAND="python -VV && python -m unittest discover -f -s {project}/test"
install:
- $PIP install numpy
- $PIP install -e .[dev]
- $PYTHON -m unittest discover -v -f -s ./test
script:
- if [[ "${TRAVIS_TAG:-}" =~ ^v[0-9]\.[0-9]\.[0-9].*$ ]]; then
$PIP install cibuildwheel==1.0.0 && cibuildwheel --output-dir wheelhouse && ls -1 wheelhouse;
else
echo "No valid git tag present so not running cibuildwheel.";
fi
deploy:
skip_cleanup: true
provider: script
script: bash .travis_deploy.sh "${TRAVIS_TAG}" "${PIP}" "${PYTHON}"
on:
tags: true