-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
59 lines (48 loc) · 1.42 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
language: python
sudo: required
os: linux
dist: trusty
# Use new Trusty image:
# https://blog.travis-ci.com/2017-06-19-trusty-updates-2017-Q2
group: edge
env:
global:
- CONDA_DEPS="pip flake8 numpy scipy numba joblib dask scikit-image" PIP_DEPS="pytest coveralls mock pytest-cov" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:mc3man/trusty-media'
packages:
- ffmpeg
python:
- '3.6'
before_install:
- ulimit -a && free -m
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- echo $MINICONDA_URL
- wget $MINICONDA_URL -O miniconda.sh;
- bash miniconda.sh -b -f -p $MINICONDA;
- conda config --set always_yes yes
- conda update conda
- conda info -a
- conda config --add channels conda-forge
- conda install python=$TRAVIS_PYTHON_VERSION $CONDA_DEPS
- pip install $PIP_DEPS
install:
- travis_wait
- python setup.py install --record installed_files.txt
script:
- flake8 --ignore E501 `find . -name \*.py | grep -v setup.py | grep -v version.py | grep -v __init__.py | grep -v /doc/ | grep -v /scripts/`
- ulimit -a && free -m
- mkdir for_test
- cd for_test
- py.test --pyargs pulse2percept --cov-report term-missing --cov=pulse2percept --doctest-modules
after_success:
- coveralls
after failure:
- ls -alh
- ulimit -a
- free -m