-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
executable file
·60 lines (57 loc) · 2.2 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
dist: trusty
group: edge
os:
- linux
# travis does not support python on osx yet (https://github.com/travis-ci/travis-ci/issues/4729)
language: python
python:
- "3.6"
before_install:
# upgrade docker so that it has same API version as client https://docs.travis-ci.com/user/docker/
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce task-spooler
# install anaconda Python 3
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- 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
# downgrade python if needed
- conda create -n python_test python=$TRAVIS_PYTHON_VERSION anaconda
- source activate python_test
# add docker
- pip install docker
# packages required by SoS
- pip install pyyaml psutil tqdm nose
- pip install fasteners pygments networkx pydot pydotplus
# https://github.com/jupyter/jupyter/issues/150
- pip install entrypoints jupyter coverage codacy-coverage pytest pytest-cov python-coveralls
- pip install git+https://github.com/vatlab/sos.git
- pip install git+https://github.com/vatlab/sos-notebook.git
- python -m sos_notebook.install
- pip install git+https://github.com/vatlab/sos-bash.git
- conda install pandas numpy
sudo: required
services:
- docker
install: "pip install . -U"
before_script:
- cd test
- sh build_test_docker.sh
script:
# coverage does not seem to work well with python 3.6, but it does not really matter because we have coverage report from python 3.5 already
# SAS and Matlab are not tested
- pytest -v --cov-report=xml
after_success:
- coverage combine
- coveralls
notifications:
email:
recipients:
on_success: never
on_failure: always