-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
110 lines (104 loc) · 3.29 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
language: python
python: 2.7
os:
- linux
# - osx
# Ubuntu 14.04 Trusty support
#sudo: required
#dist: trusty
# install new cmake
#addons:
# apt:
# packages:
# - cmake
# sources:
# - kalakris-cmake
env:
# - CONDA_PYTHON_VERSION=2.7
- CONDA_PYTHON_VERSION=3.6
- CONDA_PYTHON_VERSION=3.7
- CONDA_PYTHON_VERSION=3.8
jobs:
include:
- os: osx
language: shell
name: osx python36
env:
- CONDA_PYTHON_VERSION=3.6
- os: osx
language: shell
name: osx python37
env:
- CONDA_PYTHON_VERSION=3.7
allow_failures:
# - env: CONDA_PYTHON_VERSION=3.7
# - env: CONDA_PYTHON_VERSION=3.8
- name: "osx python36"
- name: "osx python37"
fast_finish: true
virtualenv:
system_site_packages: true
before_install:
# Do something under Mac OS X platform
# sudo apt-get update;
- if [[ "$(uname)" == "Darwin" ]]; then
echo "Darwin found" ;
else
sudo apt-get install -qq cmake libinsighttoolkit3-dev libpng12-dev libgdcm2-dev;
fi
# elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then
# Do something under GNU/Linux platform
# elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
# Do something under 32 bits Windows NT platform
# elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
# Do something under 64 bits Windows NT platform
- wget http://home.zcu.cz/~mjirik/lisa/install/install_conda.sh && source install_conda.sh
# We do this conditionally because it saves us some downloading if the
# version is the same.
# - if [[ "$CONDA_PYTHON_VERSION" == "2.7" ]]; then
# wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
# else
# wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
# fi
# - bash miniconda.sh -b -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 config --add channels SimpleITK
- conda config --add channels mjirik
- conda config --add channels luispedro
- conda config --add channels conda-forge
# - wget http://147.228.240.61/queetech/sample-extra-data/io3d_sample_data.zip && unzip io3d_sample_data.zip
# command to install dependencies
install:
# - conda install --yes pip nose
# Install dependencies
# ITK added just for test build without apt-get on OSX
- conda install --yes --file requirements_conda.txt python=$CONDA_PYTHON_VERSION pip pytest-cov itk
# - conda install --yes pytest-cov
# - pip install -r requirements_pip.txt
# - pip install python-coveralls
- "echo $LD_LIBRARY_PATH"
- pip install -r requirements.txt
- mkdir build
- cd build
- cmake ..
- cmake --build .
- conda list -e
# - cmake --install .
- sudo make install
- cd ..
- pip install .
- 'echo "include /usr/local/lib" | sudo tee -a /etc/ld.so.conf'
- 'sudo ldconfig -v'
- conda list -e
# command to run tests
script:
# - mkdir empty && cd empty
- pytest --cov=skelet3d/ tests
# - python -m pytest --cov=skelet3d/ ../tests
after_success:
- coveralls