-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
46 lines (46 loc) · 1.89 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
# vim ft=yaml
# travis-ci.org definition for testkraut build (based on the PyMVPA
# configuration that is based on the nipype configuration which in turn was
# based on nipy)
#
# We pretend to be erlang because we need can't use the python support in
# travis-ci; it uses virtualenvs, they do not have numpy, scipy, matplotlib,
# and it is impractical to build them
language: erlang
env:
- PYTHON=python PYSUF=''
# - PYTHON=python3 PYSUF=3 : python3-numpy not currently available
install:
# to prevent IPv6 being used for APT
- sudo bash -c "echo 'Acquire::ForceIPv4 \"true\";' > /etc/apt/apt.conf.d/99force-ipv4"
# The ultimate one-liner setup for NeuroDebian repository
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
#- sudo apt-get install $PYTHON-dev
- sudo pip install six
- sudo apt-get install -qq $PYTHON-numpy
- sudo apt-get install -qq $PYTHON-scipy
- sudo apt-get install -qq $PYTHON-nibabel
- sudo apt-get install -qq $PYTHON-nose
- sudo apt-get install -qq $PYTHON-pydot
- sudo apt-get install -qq $PYTHON-testtools
- sudo apt-get install -qq $PYTHON-nipype
- sudo apt-get install -qq strace
script:
- ls -l
- $PYTHON -c 'from testkraut import cfg; print cfg'
# Run only nonlabile tests
- TESTKRAUT_TESTRUN_SKIP_DEPENDENCY_DESCRIPTION=yes make test
after_success:
# apparently needed for deployment. See https://travis-ci.org/neurodebian/testkraut/builds/76649548#L1166
- sudo pip install twine
deploy:
provider: pypi
distributions: sdist
user: Michael.Hanke
password:
secure: Vpl696ZM7Wm2RhRsTdchZPgIC6dhaTDwr2u6evwUvwsMhZBmSwba2oNMeP9oBtFAJe+SA9m5RhqJr0+3UGjQc9DyapGLoyXdhbRLgWyO6o8lJCoQEfr9VxZ93oeAaEpOGLY39HKc+KU/jg/1pSVeczK7abiQHCwEWbrHZy/jd2M=
on:
tags: true
branch: master
repo: neurodebian/testkraut
condition: "$PYTHON == python && $TRAVIS_TAG =~ ^release/[0-9][.][.0-9]*"