forked from bids-standard/pybids
/
.travis.yml
79 lines (69 loc) · 2.2 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
language: python
sudo: false
cache:
directories:
- $HOME/.cache/pip
# python and global.matrix are crossed to create the base build matrix
python:
- 2.7
- 3.5
- 3.6
env:
global:
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
- PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
matrix:
- EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
- EXTRA_PIP_FLAGS="--pre --find-links=$EXTRA_WHEELS --find-links $PRE_WHEELS"
# Add OSX entries to the build matrix
matrix:
include:
- os: osx
language: generic
env:
- PYTHON_VERSION=2.7
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh"
- os: osx
language: generic
env:
- PYTHON_VERSION=3.5
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
- os: osx
language: generic
env:
- PYTHON_VERSION=3.6
- MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export MINICONDA=$HOME/miniconda;
export PATH="$MINICONDA/bin:$PATH";
hash -r;
echo $MINICONDA_URL;
wget $MINICONDA_URL -O miniconda.sh;
bash miniconda.sh -b -s -f -p $MINICONDA;
conda config --set always_yes yes;
conda info -a;
conda install --quiet python=$PYTHON_VERSION;
fi
- travis_retry pip install --upgrade pip
- travis_retry pip install --upgrade virtualenv
- virtualenv --python=python venv
- source venv/bin/activate
- python --version # just to check
- travis_retry pip install -U pip wheel # needed at one point
- travis_retry pip install pytest pytest-xdist pytest-cov codecov
install:
- pip install $EXTRA_PIP_FLAGS ".[analysis]"
script:
- py.test -n 2 -v --cov bids --cov-config .coveragerc --cov-report xml:cov.xml bids
after_script:
- codecov --file cov.xml --flags unittests
cache: false
deploy:
provider: pypi
user: $PYPI_USER
password: $PYPI_PASS
skip_cleanup: true
on:
tags: true
condition: $PYTHON_VERSION = "3.5"