forked from Macatools/macapype
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (52 loc) · 1.47 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
61
62
63
64
65
66
language: python
cache:
pip: true
apt: true
directories:
- ~/mne_data/
sudo: false
dist: trusty
matrix:
include:
- env: TEST=standard
os: linux
python: '3.6'
before_install:
# Instal miniconda
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://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
- conda info -a
- SRC_DIR=$(pwd)
install:
# Create the python environment ;
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy pip cython matplotlib;
- source activate testenv
# Testing dependencies
- pip install codecov pytest pytest-cov;
# Install macapype
- cd ${SRC_DIR}
- pip install -e .
- pip install flake8
- sudo apt-get install graphviz libgraphviz-dev
- pip install --upgrade pygraphviz graphviz
script:
# Run test with coverage
- if [[ "${TEST}" == "standard" ]]; then
py.test --cov macapype --ignore=examples/ --ignore=run_examples/;
fi;
- flake8 --count macapype
notifications:
email: false
after_success:
# Code coverage
- if [ "${TEST}" == "standard" ]; then
codecov;
fi