forked from mne-tools/mne-bids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (71 loc) · 2.23 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
73
74
75
76
77
78
79
80
language: c
dist: xenial
node_js:
- "10.16.1"
matrix:
include:
- os: linux
- os: osx
# Specify version of BIDS-validator to be used, 'master', or 'stable'
env:
global:
# can be "stable", or anything that can be used with git checkout
- VALIDATOR_VERSION="master"
# can be any branch of MNE-Python (e.g., "maint/0.18", "master", ...)
- MNE_VERSION="master"
before_install:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ${HOME}/miniconda
- export PATH=${HOME}/miniconda/bin:$PATH
- conda update --yes --quiet conda
- npm install -g npm stable
- npm install -g node@10.16.1
- npm --version
- node --version
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install yarn;
fi
- yarn --version
install:
- echo $PATH
- |
if [ $VALIDATOR_VERSION == 'stable' ];then
npm install -g bids-validator
else
pushd ~
git clone https://github.com/bids-standard/bids-validator
cd bids-validator
git checkout $VALIDATOR_VERSION
yarn
export PATH=~/bids-validator/bids-validator/bin:$PATH
popd
fi
- echo $PATH
- bids-validator --version
- which bids-validator
- conda env create -f environment.yml --name=testenv
- source activate testenv
- pip uninstall --yes --quiet mne # uninstall the pip version of mne to install dev version below
- |
git clone --depth 1 https://github.com/mne-tools/mne-python.git -b $MNE_VERSION
cd mne-python
pip install --no-deps -e .
cd ../
- python setup.py develop
# Cache the python dependencies
# https://blog.travis-ci.com/2016-05-03-caches-are-coming-to-everyone
cache:
- pip
- yarn
script:
- pytest . --cov=./mne_bids --cov-report=xml --verbose --ignore mne-python
- check-manifest --ignore .circleci*,doc,paper,coverage.xml,.zenodo*
- flake8 --count mne_bids
after_success:
- bash <(curl -s https://codecov.io/bash)