forked from ver228/tierpsy-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.54 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
# Note from : https://travis-ci.org/Anaconda-Platform/anaconda-project/
# language: python sets up virtualenv and pip that we don't need.
# omitting language gives us ruby stuff. c seems likely to be a minimal setup.
language: c
notifications:
email: false
env :
- TRAVIS_PYTHON_VERSION=3.6
os:
- linux
#- osx
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINICONDA_OS=Linux ;
else
MINICONDA_OS=MacOSX ;
fi ;
echo "Fetching miniconda for $MINICONDA_OS" ;
curl https://repo.continuum.io/miniconda/Miniconda3-latest-$MINICONDA_OS-x86_64.sh -o miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME"/miniconda/bin/activate root
- printenv | sort
- conda config --set always_yes yes --set changeps1 no --set auto_update_conda false
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# create testing enviroment
- conda config --add channels conda-forge
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy matplotlib pytables pandas gitpython pyqt=5 h5py scipy scikit-learn scikit-image seaborn xlrd cython statsmodels numba keras opencv tensorflow
- source activate test-environment
- printenv | sort
- export PATH=`echo "$PATH" | sed -e s@"$HOME"/miniconda/bin:@@g`
- printenv | sort
# install tierpsy
- bash installation/installation_script.sh
before_script:
#download examples
- bash installation/installation_script.sh --download_examples
script:
- which python3
- python tests/run_tests.py 2 4 5