File: check.sh

package info (click to toggle)
nipype 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,260 kB
  • sloc: python: 156,463; javascript: 9,246; tcl: 608; sh: 485; makefile: 168
file content (31 lines) | stat: -rwxr-xr-x 605 bytes parent folder | download | duplicates (3)
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
#!/bin/bash

echo Running tests

source tools/ci/activate.sh
source tools/ci/env.sh

set -eu

# Required variables
echo CHECK_TYPE = $CHECK_TYPE

set -x

if [ "${CHECK_TYPE}" == "test" ]; then
    pytest --capture=no --verbose --doctest-modules -c nipype/pytest.ini \
        --cov-config .coveragerc --cov nipype --cov-report xml \
        --junitxml=test-results.xml nipype
elif [ "$CHECK_TYPE" = "specs" ]; then
    make specs
    git status -s
    test -z "$(git status -s)"
elif [ "$CHECK_TYPE" = "style" ]; then
    black --check nipype setup.py
else
    false
fi

set +eux

echo Done running tests