-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
95 lines (94 loc) · 3.72 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: cpp
sudo: required
addons:
apt:
packages:
- cmake
- libboost-dev
- python3
- python3-pip
- python3-yaml
- lcov
- libvtk7-dev
matrix:
include:
- os: osx
osx_image: xcode11
compiler: clang
env: ITK_VERSION=v4.13.3 TRAVIS_PYTHON_VERSION=3.6
- os: linux
dist: bionic
compiler: gcc
env: ITK_VERSION=v4.13.3 TRAVIS_PYTHON_VERSION=3.6
- os: osx
osx_image: xcode11
compiler: clang
env: ITK_VERSION=v5.1.2 TRAVIS_PYTHON_VERSION=3.6
- os: linux
dist: bionic
compiler: gcc
env: ITK_VERSION=v5.1.2 TRAVIS_PYTHON_VERSION=3.6
- os: osx
osx_image: xcode11
compiler: clang
env: ITK_VERSION=v4.13.3 TRAVIS_PYTHON_VERSION=3.7
- os: linux
dist: bionic
compiler: gcc
env: ITK_VERSION=v4.13.3 TRAVIS_PYTHON_VERSION=3.7
- os: osx
osx_image: xcode11
compiler: clang
env: ITK_VERSION=v5.1.2 TRAVIS_PYTHON_VERSION=3.7
- os: linux
dist: bionic
compiler: gcc
env: ITK_VERSION=v5.1.2 TRAVIS_PYTHON_VERSION=3.7
cache:
- directories:
- $HOME/itk-${ITK_VERSION}
- $HOME/itk-${ITK_VERSION}-build
before_install:
- if test $TRAVIS_OS_NAME == osx ; then brew update && brew install vtk python3 lcov || brew upgrade libpng; fi
before_script:
- export NUM_THREADS=4
- export ITK_SOURCE_DIR=$HOME/itk-${ITK_VERSION}
- export ITK_BUILD_DIR=${ITK_SOURCE_DIR}-build
- export MINICONDA_MAC=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
- export MINICONDA_LINUX=https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- if ! test -e ${ITK_SOURCE_DIR}/CMakeLists.txt; then rm -fr $ITK_SOURCE_DIR; fi
- if ! test -d ${ITK_SOURCE_DIR}; then git clone --branch ${ITK_VERSION} https://github.com/InsightSoftwareConsortium/ITK.git ${ITK_SOURCE_DIR}; fi
- if ! test -d ${ITK_BUILD_DIR}; then mkdir ${ITK_BUILD_DIR}; fi
- cd ${ITK_BUILD_DIR}
- cmake ${ITK_SOURCE_DIR} -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DModule_ITKReview=ON -DModule_LesionSizingToolkit=ON
- make --jobs=$NUM_THREADS --keep-going
- cd -
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl $MINICONDA_LINUX -o miniconda_install.sh; elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl $MINICONDA_MAC -o miniconda_Install.sh; fi
- bash miniconda_install.sh -b -f -p "$HOME/miniconda/"
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
- conda install --yes python=$TRAVIS_PYTHON_VERSION pandas scipy numpy ipython matplotlib
- conda install --yes -c bioconda ruffus
- conda install --yes -c SimpleITK SimpleITK
- python3 -m pip install codecov
- cd externals/TCIAExplorer
- python3 setup.py install
- cd -
- python3 script/download_lungx_tcia.py
script:
- if ! test -d build; then mkdir build; fi
- cd build
- cmake .. -DENABLE_COVERAGE=On && make && make test && cd - && coverage run script/run_lungx.py && cd build
- make gcov
- make lcov
- cd -
- python3 setup.py install
after_success:
- codecov
notifications:
slack:
secure: 1omnZ9jQHn0IfraFNGqzdKu0pZqVLX/Wnt7DTLVMimdZNQHZYhnbDMJz6E5jiB190dGp0BKOXfbbhAqzpBO1upnZhGelZG9vMnRTiBH/7T9mjTCnQzSdTNPxdjopdED8Xbllhi43NIrfooXfz+3AuLTk6w5ox07oWPUQj8plbTl04bCwQha2H7CnpXS6unZ8xroNf3Vve6vFv3TxlwF6Q3ZWkgP60FqbTgWytKMb82sQ1+UjNGE/dxdqs4SPNmqNZgmaoi34NjjKmh23yuT1O6TaPsXE//U3yJd++t7l3vVTW2trYm718Bldh682ebDrMGS4+mH6vPIeQggJfubdu8V8p9Y5amh2hvsWfQ2bCnW2USgpAVgdyG/c5HHUvPmde3LuuUTUGlJsqAkyvBNVtqsz2ivKkkcm3FYOmpewa4RdNQ4RCzuzuFmop+nZYB5ZNwiQCn76RxtpvZoNvovNw6swc48Au36D/KdGnHjV975qlgaJDJaakGaEHgNkX6M6zS7rdD65Lun6lfeQ2mMciWXys7sxKkP+k4O/pNQaQzkNeFG9VYVe1w+Iymwnia5ltH9LttfZXi8UXkPaBDmUCtnMHFEImQGab1WHrUNmQ1hgXhNBgCtFNj+T+QPE/qqehlJ9xt+g6itJWIHZLd5hYTXXV3eGEMqUr3kxl+045mE=