File: travis.sh

package info (click to toggle)
mrtrix3 3.0~rc3+git135-g2b8e7d0c2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 34,248 kB
  • sloc: cpp: 117,101; python: 6,472; sh: 638; makefile: 226; xml: 39; ansic: 20
file content (29 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

set -ev

# Script expects environment variables ${py} and ${test} to be set

case  $test in
  "sphinx")
    $py -m sphinx -n -N -W -w sphinx.log docs/ tmp/
    ;;
  "syntax")
    ./check_syntax
    ;;
  "pylint")
    # Normally rely on build script to create this file
    echo "__version__ = pylint_testing" > ./lib/mrtrix3/_version.py
    PYTHON=$py ./run_pylint
    ;;
  "build")
    $py ./configure -nooptim && $py ./build -nowarnings -persistent -nopaginate
    ;;
  "run")
    $py ./configure -assert && $py ./build -nowarnings -persistent -nopaginate && ./run_tests && ./docs/generate_user_docs.sh && git diff --exit-code docs/ > gitdiff.log
    ;;
  *)
    echo "Envvar \"test\" not defined";
    exit 1
    ;;
esac