Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (93 sloc) 3.57 KB
# vim ft=yaml
# travis-ci.org definition for ReproMan build
language: python
sudo: required
#dist: precise
services:
- docker
cache:
- apt
matrix:
include:
- python: 3.5
env:
- REPROMAN_TESTS_SSH=1
- INSTALL_DATALAD=1
- INSTALL_CONDOR=1
- python: 3.4
env:
- REPROMAN_TESTS_SSH=1
- REPROMAN_TESTS_DEPS=core
- python: 3.5
# By default no logs will be output. This one is to test with log output at INFO level
env:
- REPROMAN_LOGLEVEL=INFO
- python: 3.5
# By default no logs will be output. This one is to test with low level but dumped to /dev/null
env:
- REPROMAN_LOGLEVEL=2
- REPROMAN_LOGTARGET=/dev/null
- python: 3.6
# Note: This this no network run appears to hang or otherwise
# behave oddly on 3.5.
env:
- REPROMAN_TESTS_NONETWORK=1
# must operate nicely with those env variables set
- http_proxy=
- https_proxy=
# Those aren't yet ready since lxml Ibelieve fails to install
#- python: pypy
#- python: pypy3
# not there -- don't try!
# - python: nightly
env:
global:
- REPROMAN_TESTS_DEPS=full
before_install:
# we do not need anything from those APT sources, and they often fail, disable!
- sudo sed -i -e '/mongodb/d' /etc/apt/sources.list /etc/apt/sources.list.d/*list
# The ultimate one-liner setup for NeuroDebian repository
- bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
- travis_retry sudo apt-get update -qq
- git config --global user.email "test@travis.land"
- git config --global user.name "Travis Almighty"
install:
# - tools/ci/build_install_apt # Removed dependency on python-apt!
- cd ..; pip install -q codecov; cd -
- pip install --upgrade pip
# needed by html5lib
- pip install --upgrade 'setuptools>=18.5'
- pip install -e .[$REPROMAN_TESTS_DEPS]
# The above could have been a core dependencies install, so make
# sure we have the other devel dependencies we need.
- pip install -e .[tests]
- pip install -e .[devel-docs]
- pip install -e .[devel-utils]
# So we could test under sudo -E with PATH pointing to installed location
- sudo sed -i -e 's/^Defaults.*secure_path.*$//' /etc/sudoers
# for SVN tests (SVNRepoShim._ls_files_command())
- sudo apt-get install sqlite3
- travis_retry sudo eatmydata apt-get install singularity-container
- if [ ! -z "${INSTALL_DATALAD:-}" ]; then tools/ci/install_datalad; fi
- if [ ! -z "${INSTALL_CONDOR:-}" ]; then tools/ci/install_condor; fi
script:
# Verify that setup.py build doesn't puke
- python setup.py build
- if [ ! -z "$REPROMAN_TESTS_NONETWORK" ]; then sudo route add -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
# - $NOSE_WRAPPER `which nosetests` -s -v --with-doctest --doctest-tests --with-cov --cover-package reproman --logging-level=INFO
- coverage run `which py.test` -s -rs --integration reproman
- if [ ! -z "$REPROMAN_TESTS_NONETWORK" ]; then sudo route del -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
# Generate documentation and run doctests
- PYTHONPATH=$PWD make -C docs html doctest
branches:
except:
- 3rd-repronimed
- 3rd
after_success:
- codecov
# makes it only more difficult to comprehend the failing output. Enable only when necessary
# for a particular debugging
#after_failure:
# - if [ ! -z "$REPROMAN_TESTS_NONETWORK" ]; then sudo route add -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
# - REPROMAN_LOGLEVEL=DEBUG $NOSE_WRAPPER `which nosetests` -s -v --with-doctest --doctest-tests --with-cov --cover-package reproman --logging-level=DEBUG
# - if [ ! -z "$REPROMAN_TESTS_NONETWORK" ]; then sudo route del -net 0.0.0.0 netmask 0.0.0.0 dev lo; fi
You can’t perform that action at this time.