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

CI: use variables for chosing MATLAB and Octave versions

parent 57a4d667
Branches
No related tags found
No related merge requests found
Pipeline #4569 passed
variables:
MATLAB_VERSION: R2020b
OLD_MATLAB_VERSION: R2014a
OCTAVE_VERSION: 5.2.0
before_script:
- git clone https://git.dynare.org/Dynare/dseries.git
test_matlab:
stage: test
script:
- make check-matlab
- make check-matlab MATLAB=/usr/local/MATLAB/$MATLAB_VERSION/bin/matlab
artifacts:
paths:
- test/my/report/dir/report.pdf
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
artifacts:
paths:
- test/my/report/dir/report.pdf
......@@ -22,7 +25,7 @@ test_old_matlab:
test_octave:
stage: test
script:
- make check-octave
- make check-octave OCTAVE=/usr/local/octave/$OCTAVE_VERSION/bin/octave
artifacts:
paths:
- test/my/report/dir/report.pdf
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.
Please register or to comment