CI: use variables for chosing MATLAB and Octave versions
parent
68ae83c25c
commit
d1ea4e75e5
|
@ -1,20 +1,23 @@
|
||||||
|
variables:
|
||||||
|
MATLAB_VERSION: R2020b
|
||||||
|
OLD_MATLAB_VERSION: R2014a
|
||||||
|
OCTAVE_VERSION: 5.2.0
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- git clone https://git.dynare.org/Dynare/dseries.git
|
- git clone https://git.dynare.org/Dynare/dseries.git
|
||||||
|
|
||||||
test_matlab:
|
test_matlab:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- make check-matlab
|
- make check-matlab MATLAB=/usr/local/MATLAB/$MATLAB_VERSION/bin/matlab
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- test/my/report/dir/report.pdf
|
- test/my/report/dir/report.pdf
|
||||||
|
|
||||||
test_old_matlab:
|
test_old_matlab:
|
||||||
stage: test
|
stage: test
|
||||||
variables:
|
|
||||||
MATLAB: /usr/local/MATLAB/R2014a/bin/matlab
|
|
||||||
script:
|
script:
|
||||||
- make check-matlab
|
- make check-matlab MATLAB=/usr/local/MATLAB/$OLD_MATLAB_VERSION/bin/matlab
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- test/my/report/dir/report.pdf
|
- test/my/report/dir/report.pdf
|
||||||
|
@ -22,7 +25,7 @@ test_old_matlab:
|
||||||
test_octave:
|
test_octave:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- make check-octave
|
- make check-octave OCTAVE=/usr/local/octave/$OCTAVE_VERSION/bin/octave
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- test/my/report/dir/report.pdf
|
- test/my/report/dir/report.pdf
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
OCTAVE ?= octave-cli
|
OCTAVE ?= octave-cli
|
||||||
MATLAB ?= $(shell which matlab)
|
MATLAB ?= matlab
|
||||||
|
|
||||||
all: check-octave check-matlab
|
all: check-octave check-matlab
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue