Commit 14c9e07f authored by Dóra Kocsis's avatar Dóra Kocsis

extend pipeline to Octave and MATLAB 2009b

parent 2841e9df
Pipeline #3447 failed with stage
in 50 seconds
......@@ -8,4 +8,18 @@ before_script:
test_matlab:
stage: test
script:
- make check-matlab
\ No newline at end of file
- make check-matlab
test_old_matlab:
stage: test
variables:
MATLAB: /usr/local/MATLAB/R2009b/bin/matlab
script:
- make check-matlab
test_octave:
stage: test
variables:
OPENBLAS_NUM_THREADS: 1
script:
- make check-octave
\ No newline at end of file
OCTAVE ?= octave-cli
MATLAB ?= $(shell which matlab)
all: check-matlab
all: check-octave check-matlab
m-unit-tests/src/mtest.m:
git clone https://git.dynare.org/Dynare/m-unit-tests
check-octave: m-unit-tests/src/mtest.m
@cd tests ;\
$(OCTAVE) --no-init-file --silent --no-history --eval "addpath([pwd() '/../m-unit-tests/src']); runalltests" && [ ! -f ./failed ] && [ -f ./pass ]
check-matlab: m-unit-tests/src/mtest.m
@$(MATLAB) -nosplash -nodisplay -r "addpath([pwd '/m-unit-tests/src']); cd tests; runalltests; quit" && [ ! -f ./tests/failed ] && [ -f ./tests/pass ]
check-clean:
rm -f tests/*_test_*.m tests/*.csv tests/*.xls tests/*.xlsx tests/*.mat tests/failed tests/datafile_for_test
rm -f git.info git.last-commit-hash tests/pass tests/failed tests/*.spc
rm -rf m-unit-tests
rm -rf m-unit-tests
\ No newline at end of file
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