Skip to content
Snippets Groups Projects
Verified Commit 7743fc6f authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

CI: use variables for chosing MATLAB and Octave versions

parent 11e9e608
Branches master
No related tags found
No related merge requests found
Pipeline #4565 passed
variables:
GIT_SUBMODULE_STRATEGY: normal
TERM: linux
MATLAB_VERSION: R2020b
OLD_MATLAB_VERSION: R2014a
OCTAVE_VERSION: 5.2.0
before_script:
- git clone https://git.dynare.org/Dynare/m-unit-tests
......@@ -8,18 +11,16 @@ before_script:
test_matlab:
stage: test
script:
- make check-matlab
- make check-matlab MATLAB=/usr/local/MATLAB/$MATLAB_VERSION/bin/matlab
test_old_matlab:
stage: test
variables:
MATLAB: /usr/local/MATLAB/R2014a/bin/matlab
script:
- make check-matlab
- make check-matlab MATLAB=/usr/local/MATLAB/$OLD_MATLAB_VERSION/bin/matlab
test_octave:
stage: test
variables:
OPENBLAS_NUM_THREADS: 1
script:
- make check-octave
- make check-octave OCTAVE=/usr/local/octave/$OCTAVE_VERSION/bin/octave
OCTAVE ?= octave-cli
MATLAB ?= $(shell which matlab)
MATLAB ?= matlab
all: check-octave check-matlab
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment