-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
49 lines (49 loc) · 1.8 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
language: python
env:
matrix:
- PYTHON="python=2.7"
#- PYTHON="python=3.4"
global:
- GH_REF: github.com/biorack/metatlas.git
- secure: HCQ8gC9b17rPuF4/KnZFlh3crLhlRFKtbUMVJGFuCnz4r7Zna1TELWgmLI0WX6jGgwjjO9ca5aKOOKj0CVGvOPTmIX3VCGEehgxfN0K9pdE9eUlaN047hh32CrTxtik97jxImvPnbni/QmwI3/xI/XrPj2U5iUm38h/WDg+sTPU=
before_install:
- sudo apt-add-repository "deb http://cran.stat.ucla.edu/bin/linux/ubuntu trusty/"
- sudo apt-get update
- sudo apt-get install --force-yes sqlite3
#libnetcdf-dev netcdf-bin r-base
- export MPL_DIR=$HOME/.config/matplotlib
- export METATLAS_LOCAL=True
- mkdir -p $MPL_DIR
- touch $MPL_DIR/matplotlibrc
- echo "backend:Template" > $MPL_DIR/matplotlibrc
- wget -nv http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes
- conda update conda -q
- conda info -a
- conda create --quiet --yes -n test $PYTHON pip nose pytables matplotlib pandas jupyter h5py
- source activate test
# - rm /home/travis/miniconda/envs/test/lib/libreadline.so.6
- pip install coveralls requests_toolbelt
# rpy2
# - sudo Rscript scripts/xcms-install.R
- conda install -c https://conda.anaconda.org/rdkit rdkit
install:
#- export PYTHONWARNINGS=all
- pip install -e .
script:
- export METATLAS_LOCAL=1
- touch travis_workspace.db
#- if [[ $PYTHON == python=3.4* ]]; then nosetests --exe -v --with-doctest --with-cov
# --cover-package metatlas; else
# - nosetests --exe -v --with-doctest --with-cov --cover-package metatlas
- nosetests --exe -v metatlas
#; fi
- make docs
# - pytest metatlas/tests/test_metatlas_objects.py
# after_success:
# - coveralls
# - if [[ $PYTHON == python=3.4* ]]; then bash scripts/travis_after_success.sh; fi
- bash scripts/travis_after_success.sh