-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.travis.yml
44 lines (44 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
41
42
43
44
language: generic
os:
- linux
env:
matrix:
- DEP_VERSIONS="oldest"
- DEP_VERSIONS="latest"
before_install:
- if [[ $DEP_VERSIONS == "oldest" ]]; then
sudo apt-get install -y -qq python-tk python-pip python-setuptools python-numpy python-scipy python-matplotlib python-tables python-nose python-coverage python-pandas python-sphinx python-mock python-numpydoc python-yaml;
sudo pip install --no-deps oct2py==2.4.2 DynamicistToolKit==0.4.0;
elif [[ $DEP_VERSIONS == "latest" ]]; then
MINICONDA_URL="https://repo.continuum.io/miniconda";
MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh";
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}";
bash $MINICONDA_FILE -b;
source ~/miniconda3/bin/activate root;
conda config --set always_yes yes;
conda update -q conda;
conda env create -f env-dev-latest.yml;
source activate gaitanalysis-dev-latest;
sudo apt-add-repository -y ppa:octave/stable;
fi
- sudo apt-get update
- sudo apt-get install -y -qq octave
install:
- if [[ $DEP_VERSIONS == "oldest" ]]; then
sudo pip install --no-deps -e .;
elif [[ $DEP_VERSIONS == "latest" ]]; then
python setup.py install;
fi
before_script:
- python --version
- octave --version
- if [[ $DEP_VERSIONS == "oldest" ]]; then
pip freeze;
elif [[ $DEP_VERSIONS == "latest" ]]; then
conda info;
conda list;
fi
script:
- nosetests -v --with-coverage --cover-package=gaitanalysis
- cd docs
- make html