-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
75 lines (70 loc) · 2.39 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
language: python
python: 2.7 # I am using conda-python anyway, this travis virtual machine support xvfb display server
# - "2.6"
# - "2.7"
# - "3.2"
# - "3.3"
# - "3.6"
env:
- CONDA_PYTHON_VERSION=2.7
- CONDA_PYTHON_VERSION=3.6
- CONDA_PYTHON_VERSION=3.7
matrix:
allow_failures:
- env: CONDA_PYTHON_VERSION=2.7
fast_finish: true
services:
- xvfb
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update -qq
# 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
# - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
# - chmod +x miniconda.sh
# - ./miniconda.sh -b
- 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
# sudo: false
# command to install dependencies
install:
- conda update --yes conda
# Install dependencies
- conda install --yes -c SimpleITK -c luispedro -c mjirik -c conda-forge --file requirements_conda.txt python=$CONDA_PYTHON_VERSION
- conda install pip
- pip install pygco
- conda install -y -c conda-forge pytest coveralls pytest-cov python=$CONDA_PYTHON_VERSION
# - pip install python-coveralls
- conda list
# - apt-cache policy openssl
# - conda install --yes paramiko=1.16.0
# - 'echo "include /usr/local/lib" | sudo tee -a /etc/ld.so.conf'
# - sudo ldconfig -v
# get sample data for lisa
# - python -m io3d.datasets -l lisa
- python setup.py build_ext --inplace
before_script:
# GUI
- "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
# give xvfb sume time to start
- sleep 3
# command to run tests
#script: nosetests --with-coverage --verbose -d --cover-package=imcut
# script: nosetests --with-coverage --verbose --nocapture --nologcapture --cover-package=lisa
# script: nosetests --with-coverage --cover-package=lisa
script:
- python -m pytest --cov=imcut/
after_success:
- coveralls