File: .travis.yml

package info (click to toggle)
nipype 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,940 kB
  • sloc: python: 150,950; javascript: 9,246; tcl: 608; sh: 304; makefile: 165
file content (84 lines) | stat: -rw-r--r-- 2,371 bytes parent folder | download
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
81
82
83
84
os: linux
dist: bionic

language: python
# our build matrix
python:
- 3.6
- 3.7
- 3.8

env:
  global:
    - EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
    - PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
    - EXTRA_PIP_FLAGS="--find-links=$EXTRA_WHEELS"
    - CHECK_TYPE=test
  jobs:
    - INSTALL_DEB_DEPENDECIES=true
      NIPYPE_EXTRAS="doc,tests,nipy,profiler"
      CI_SKIP_TEST=1
    - INSTALL_DEB_DEPENDECIES=false
      NIPYPE_EXTRAS="doc,tests,profiler"
      CI_SKIP_TEST=1
    - INSTALL_DEB_DEPENDECIES=true
      NIPYPE_EXTRAS="doc,tests,nipy,profiler,duecredit,ssh"
      CI_SKIP_TEST=1
    - INSTALL_DEB_DEPENDECIES=true
      NIPYPE_EXTRAS="doc,tests,nipy,profiler"
      EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS --upgrade"
      CI_SKIP_TEST=1

jobs:
  include:
    - python: 3.7
      env:
        - NIPYPE_EXTRAS=dev
          CHECK_TYPE=specs

addons:
  apt:
    packages:
      - xvfb
      - fusefat
      - graphviz

cache:
  directories:
    - ${HOME}/.cache

before_install:
- if $INSTALL_DEB_DEPENDECIES; then sudo rm -rf /dev/shm; sudo ln -s /run/shm /dev/shm; fi
- travis_retry bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh);
- if $INSTALL_DEB_DEPENDECIES; then
    travis_retry sudo apt-get -y update &&
    travis_retry sudo apt-get install -y -qq fsl afni elastix fsl-atlases;
  fi;
- if $INSTALL_DEB_DEPENDECIES; then
    source /etc/fsl/fsl.sh;
    source /etc/afni/afni.sh;
    export FSLOUTPUTTYPE=NIFTI_GZ;
  fi;

- travis_retry pip install $EXTRA_PIP_FLAGS -r requirements.txt
- travis_retry pip install grabbit==0.2.6
- travis_retry pip install -e git+https://github.com/bids-standard/pybids.git@0.7.0#egg=pybids

install:
- travis_retry pip install $EXTRA_PIP_FLAGS -e .[$NIPYPE_EXTRAS]
- travis_retry pip install pytest-xdist

script:
- |
    if [ "$CHECK_TYPE" = "test" ]; then
        py.test -sv --cov nipype --cov-config .coveragerc --cov-report xml:cov.xml -c nipype/pytest.ini --doctest-modules nipype -n 2
    fi
- |
    if [ "$CHECK_TYPE" = "specs" ]; then
        make specs
        git add nipype
        test "$( git diff --cached | wc -l )" -eq 0 || ( git diff --cached && false )
    fi

after_script:
- codecov --file cov.xml --flags unittests -e TRAVIS_JOB_NUMBER