forked from ANTsX/ANTsPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (59 loc) · 2 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
language: python
jobs:
include:
# perform a linux build
- services: docker
env:
global:
- TWINE_USERNAME=__token__
- CIBW_SKIP="cp2* pp2*"
cache:
- directories:
- /home/travis/build/ANTsX/itkbuild
- /home/travis/build/ANTsX/itksource
- /home/travis/build/ANTsX/ANTsPy/ants/lib
- /home/travis/build/ANTsX/ANTsPy/build
- /usr/local
before_install:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
CMAKE_INSTALLER=install-cmake.sh && \
curl -sSL https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.sh -o ${CMAKE_INSTALLER} && \
chmod +x ${CMAKE_INSTALLER} && \
sudo ./${CMAKE_INSTALLER} --prefix=/usr/local --skip-license
fi
- alias cmake=/usr/local/bin/cmake
- export PATH=/usr/local/bin/cmake/bin:/usr/local/bin:${PATH}
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
echo "need cmake 3.12" && \
brew update && \
brew install ccache && \
brew upgrade cmake && \
export PATH="/usr/local/opt/ccache/libexec:$PATH"
fi
- pip3 install scipy==1.2 pandas numpy matplotlib sklearn statsmodels nibabel
- pip3 install coveralls plotly webcolors scikit-image;
- cd ..
- if [ ! -f /home/travis/build/ANTsX/itkbuild/ITKConfig.cmake ]; then bash ${TRAVIS_BUILD_DIR}/scripts/configure_ITK.sh; fi
- temp=`find ./ -name "ITKConfig.cmake"`
- echo $temp
- cd ${TRAVIS_BUILD_DIR}
- export ITK_DIR=/home/travis/build/ANTsX/itkbuild/
install:
- python3 -m pip install cibuildwheel==1.3.0
- python3 setup.py install
# - travis_wait 30 python3 setup.py sdist bdist_wheel
script:
# build the wheels, put them into './wheelhouse'
- ./tests/run_tests_travis.sh
# - python3 -m cibuildwheel --output-dir wheelhouse
# - python3 -m pip install twine
# - ls wheelhouse/*whl
# FIXME see https://github.com/joerick/cibuildwheel
after_success:
# if the release was tagged, upload them to PyPI
- |
if [[ $TRAVIS_TAG ]]; then
echo nada # python3 -m twine upload wheelhouse/*.whl
fi