-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
72 lines (57 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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 graphpype
- cd ${SRC_DIR}
- pip install -e .
- pip install flake8
before_script:
- wget https://deim.urv.cat/~sergio.gomez/download.php?f=radatools-5.0-linux64.tar.gz -O /tmp/radatools-5.0-linux64.tar.gz
- tar -xvf /tmp/radatools-5.0-linux64.tar.gz -C /tmp
- export PATH="$PATH:/tmp/radatools-5.0-linux64/Network_Tools"
- export PATH="$PATH:/tmp/radatools-5.0-linux64/Network_Properties"
- export PATH="$PATH:/tmp/radatools-5.0-linux64/Communities_Detection"
- export PATH="$PATH:/tmp/radatools-5.0-linux64/Communities_Tools"
script:
# Run test with coverage
- if [[ "${TEST}" == "standard" ]]; then
py.test --cov;
fi;
- flake8 --count graphpype
notifications:
email: false
after_success:
# Code coverage
- if [ "${TEST}" == "standard" ]; then
codecov;
fi