forked from axondeepseg/axondeepseg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (39 loc) · 1.49 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
# command to install dependencies
install:
- echo "Installation of MiniConda"
- cd ~
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o ~/miniconda.sh; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh; fi
- bash ~/miniconda.sh -b -p $HOME/miniconda
- echo ". ~/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
- source ~/.bashrc
- yes | conda create -n ads_venv python=3.7
- conda activate ads_venv
- echo "Installation of the repository"
- cd ~/build/neuropoly/axondeepseg
- pip install -e .
- pip install python-coveralls # Add me to install python-coveralls
jobs:
include:
- stage: Basic install
os: linux
script:
- py.test . -v --cov AxonDeepSeg/ --cov-report term-missing
- stage: FSLeyes install
os: linux
script:
- yes | conda install -c conda-forge fsleyes=0.33.1
- yes | conda install -c conda-forge h5py=2.10.0
- py.test . -v --cov AxonDeepSeg/ --cov-report term-missing
- stage: Basic install
os: osx
script:
- py.test . -v --cov AxonDeepSeg/ --cov-report term-missing
- stage: FSLeyes install
os: osx
script:
- yes | conda install -c conda-forge fsleyes=0.33.1
- yes | conda install -c conda-forge h5py=2.10.0
- py.test . -v --cov AxonDeepSeg/ --cov-report term-missing
after_success:
- coveralls