forked from ContextLab/hypertools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 1.67 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
language: python
sudo: false
python:
- '2.7'
- '3.5'
- '3.6'
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3
install:
- wget 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 --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION pip pytest numpy pandas
scipy matplotlib seaborn scikit-learn numba
- source activate testenv
- pip install -r requirements.txt
- python setup.py install
- cp tests/matplotlibrc .
before_script:
- if [ ${TRAVIS_PYTHON_VERSION} == '3.6' ]; then pip install flake8; flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics; fi
- "export DISPLAY=:99.0" # https://docs.travis-ci.com/user/gui-and-headless-browsers
- sh -e /etc/init.d/xvfb start
script: py.test
notifications:
slack:
rooms:
secure: BhLZdh14a8WQlNUcJ6WD7AXu/TzCiryJgKiW8RMtX8eRiNKGlZo7mPJ4b+hdODtB5satKBt9d3GYrozJu19IDLDuppcwOw4zXFCbW9WwNJQHXEt6JHU2t51q41CZF75s5H7/qTkplwuhqn2NYwVQQ00KqKjrkbS0oQOiQypU+LZaUUXlITdSeKo/npUY6J0xkvnWFqIOgD8MoGyrR15U0bm7eG4IPSTeu/WJBINMmPdQcxjcJ8kmWv/WjhvdoypI+mgBeALi2HEpQ5SVRWk7HFvB0jRQZAhEutDQOjo/J0dudXCAxvBcD8uZCAF0fxiJx3TTz7Svj2tJd5jnrPJ41BTic9qT5yQiir+SkacgRgs1UFKMxznVT4jXBDP+16mVwbVxGFcNOVMWAkaeB/wVB1i5LQkh0VbWofjZuG8Fi+2geMaAWaGcWPHL9ZdGHc1MCdvW5zL/sq+NJwDDjtSKZB74i4qkL5mnoSl4Q9VArPUxVH7QxKBDkO9i51dsYNjrP8sEmb4EeyedqdGo/jVJaB5NXtlktQONhcpTKT77gDXel8KYhKLfIfemebpMqELXZEoigDUxr/37GXnf6sBIiDzQZitk6vAd8W4fYi8Xjia3px2OyrvZTwm14tQYRF0zZJWkZVEaJ/nQd4b0+B65YNcRrmNP9TQh9spYWYqLFQg=