Permalink
Newer
Older
100644 69 lines (62 sloc) 2.52 KB
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
1 # vim ft=yaml
2 # travis-ci.org definition for MOxUnit build (based on CoSMoMVPA,
3 # which is based on PyMVPA, which is based on nipype configuration,
4 # which in turn was based on nipy)
5 #
Dec 11, 2015 @nno BLD: support shippable.com ci
6 # We pretend to be java because we need GNU Octave which is not
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
7 # available (as of April 2015)
8
Dec 11, 2015 @nno BLD: support shippable.com ci
9 language: java
10
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
11 cache:
12 - apt
13 env:
14 global:
15 - OCTAVE=octave
Jan 26, 2016 @nno BIG: support MOcov external
16 matrix:
17 - WITH_COVERAGE=
May 8, 2017 @nno BLD: support documentation tests with travis
18 - WITH_COVERAGE=true
19 - RUN_DOC_TEST=true
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
20 before_install:
21 # to prevent IPv6 being used for APT
22 - sudo bash -c "echo 'Acquire::ForceIPv4 \"true\";' > /etc/apt/apt.conf.d/99force-ipv4"
Dec 5, 2015 @scottclowe Resolve Travis issue with apt-get update
23 - travis_retry sudo apt-get -y -qq update
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
24 - travis_retry sudo apt-get install -y -qq software-properties-common python-software-properties
25 - travis_retry sudo apt-add-repository -y ppa:octave/stable
26 - travis_retry sudo apt-get -y -qq update
Sep 1, 2015 @nno ENH: update .travis.yml to support Octave 4.0
27 # get Octave 4,0
May 8, 2017 @nno BLD: install liboctave-dev
28 - travis_retry sudo apt-get -y -qq install octave liboctave-dev
Jan 26, 2016 @nno BIG: support MOcov external
29 # install MOcov
30 - cd ..
Jan 26, 2016 @nno BLD: remove MOcov directory to stop Shippable from crashing for exist…
31 - rm -rf MOcov
Jan 26, 2016 @nno BIG: support MOcov external
32 - git clone https://github.com/MOcov/MOcov.git
33 - make -C MOcov install
May 8, 2017 @nno BLD: support documentation tests with travis
34 # retrieve MOdox
35 - rm -rf MOdox
36 - travis_retry git clone -v git://github.com/MOdox/MOdox.git
37 - make -C MOdox install
Jan 26, 2016 @nno BIG: support MOcov external
38 # go back to original directory
39 - cd MOxUnit
40 # prevent shippable from re-using old test results
41 - if [[ "$SHIPPABLE" == "true" ]]; then
Jan 26, 2017 @nno ENH: let shippable use test results XML file
42 if [[ "$WITH_COVERAGE" != "true" ]]; then
43 rm -f ${SHIPPABLE_BUILD_DIR}/shippable/testresults/*.xml;
44 fi;
Dec 11, 2015 @nno BLD: support shippable.com ci
45 fi
46
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
47 script:
Jan 26, 2016 @nno BIG: support MOcov external
48 - if [[ "$WITH_COVERAGE" == "true" ]]; then
49 TEST_ARGS=WITH_COVERAGE=true;
50 COVER_ARGS=COVER=`pwd`/MOxUnit;
51
52 if [[ "$SHIPPABLE" == "true" ]]; then
Jan 26, 2017 @nno ENH: let shippable use test results XML file
53 OUTPUT_ARGS=COVER_XML_FILE=${SHIPPABLE_BUILD_DIR}/shippable/codecoverage/coverage.xml;
Jan 27, 2017 @nno BLD: add missing double quote character
54 AFTER_SCRIPT="find ${SHIPPABLE_BUILD_DIR}/shippable/;cat ${SHIPPABLE_BUILD_DIR}/shippable/codecoverage/coverage.xml;which reports";
Jan 26, 2016 @nno BIG: support MOcov external
55 elif [[ "$TRAVIS" == "true" ]]; then
56 OUTPUT_ARGS=COVER_JSON_FILE=`pwd`/coveralls.json;
57 AFTER_SCRIPT="curl --verbose -F json_file=@`pwd`/coveralls.json https://coveralls.io/api/v1/jobs";
58 fi;
59 elif [[ "$SHIPPABLE" == "true" ]]; then
Jan 26, 2017 @nno ENH: let shippable use test results XML file
60 RESULT_ARGS=JUNIT_XML_FILE=${SHIPPABLE_BUILD_DIR}/shippable/testresults/test_results.xml;
May 8, 2017 @nno BLD: update Makefile be able to run doc test
61 elif [[ "$RUN_DOC_TEST" == "true" ]]; then
62 TEST_ARGS=RUN_DOC_TEST=true;
63 fi;
64
Jan 26, 2016 @nno BIG: support MOcov external
65 - echo Test arguments $TEST_ARGS $COVER_ARGS $OUTPUT_ARGS $RESULT_ARGS
66 - make test $TEST_ARGS $COVER_ARGS $OUTPUT_ARGS $RESULT_ARGS
Jan 26, 2017 @nno BLD: evaluate $AFTER_SCRIPT allowing for multiple commands
67 - eval $AFTER_SCRIPT
Apr 22, 2015 @nno MSC: add .travis.yml for testing with travis-ci.orig
68