Commit d3982ccb authored by Sébastien Villemot's avatar Sébastien Villemot

CI: simplification

parent 1a523644
Pipeline #37 passed with stage
in 1 minute and 8 seconds
...@@ -7,20 +7,17 @@ before_script: ...@@ -7,20 +7,17 @@ before_script:
- git clone https://git.dynare.org/Dynare/m-unit-tests - git clone https://git.dynare.org/Dynare/m-unit-tests
- wget http://www.dynare.org/x13/x13.zip - wget http://www.dynare.org/x13/x13.zip
- unzip x13.zip - unzip x13.zip
- cp -r binaries/linux externals/x13
testsuite_matlab: testsuite_matlab:
stage: test stage: test
script: script:
- cp -r binaries/linux externals/x13
- make check-matlab - make check-matlab
- ./success.sh
testsuite_octave: testsuite_octave:
stage: test stage: test
variables: variables:
OPENBLAS_NUM_THREADS: 1 OPENBLAS_NUM_THREADS: 1
script: script:
- cp -r binaries/linux externals/x13
- make check-octave - make check-octave
- ./success.sh
allow_failure: true allow_failure: true
...@@ -5,10 +5,10 @@ all: check-octave check-matlab ...@@ -5,10 +5,10 @@ all: check-octave check-matlab
check-octave: check-octave:
@cd tests ;\ @cd tests ;\
$(OCTAVE) --no-init-file --silent --no-history --eval "addpath ../m-unit-tests/src; addpath ../dates/src; runalltests" $(OCTAVE) --no-init-file --silent --no-history --eval "addpath ../m-unit-tests/src; addpath ../dates/src; runalltests" && [ ! -f ./failed ] && [ -f ./pass ]
check-matlab: check-matlab:
@$(MATLAB) -nosplash -nodisplay -r "addpath m-unit-tests/src; addpath dates/src; cd tests; runalltests; quit" @$(MATLAB) -nosplash -nodisplay -r "addpath m-unit-tests/src; addpath dates/src; cd tests; runalltests; quit" && [ ! -f ./tests/failed ] && [ -f ./tests/pass ]
check-clean: check-clean:
rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test
#!/bin/bash
if [[ -f ./tests/failed ]]; then
exit 1
elif [[ -f ./tests/pass ]]; then
exit 0
else
exit 1
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment