forked from BerkeleyAutomation/python-fcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 896 Bytes
/
.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
env:
global:
- CIBW_BEFORE_BUILD="yum install -y gcc && yum install -y glibc.i686 && pip install numpy cython && cd requirements && bash install_cmake.bash && bash clone.bash && bash build.bash"
- CIBW_TEST_REQUIRES="nose2"
- CIBW_TEST_COMMAND="cd {project}/test && nose2"
- CIBW_SKIP="cp33-* cp34-*"
- TWINE_USERNAME=mmatl
matrix:
include:
- dist: trusty
sudo: required
language: python
python: "3.6"
services:
- docker
install:
# Python 3 is needed to run cibuildwheel
- if [ "${TRAVIS_OS_NAME:-}" == "osx" ]; then
brew install python3;
fi
# Install cibuildwheel using pip3 to make sure Python 3 is used.
- pip3 install cibuildwheel==0.7.1
script:
- cibuildwheel --output-dir wheelhouse
- |
if [[ $TRAVIS_TAG ]]; then
python -m pip install twine
python -m twine upload wheelhouse/*.whl
fi