Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
7743fc6f
Unverified
Commit
7743fc6f
authored
Dec 17, 2020
by
Sébastien Villemot
Browse files
CI: use variables for chosing MATLAB and Octave versions
parent
11e9e608
Pipeline
#4565
passed with stage
in 4 minutes and 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7743fc6f
variables
:
variables
:
GIT_SUBMODULE_STRATEGY
:
normal
GIT_SUBMODULE_STRATEGY
:
normal
TERM
:
linux
TERM
:
linux
MATLAB_VERSION
:
R2020b
OLD_MATLAB_VERSION
:
R2014a
OCTAVE_VERSION
:
5.2.0
before_script
:
before_script
:
-
git clone https://git.dynare.org/Dynare/m-unit-tests
-
git clone https://git.dynare.org/Dynare/m-unit-tests
...
@@ -8,18 +11,16 @@ before_script:
...
@@ -8,18 +11,16 @@ before_script:
test_matlab
:
test_matlab
:
stage
:
test
stage
:
test
script
:
script
:
-
make check-matlab
-
make check-matlab
MATLAB=/usr/local/MATLAB/$MATLAB_VERSION/bin/matlab
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
test_octave
:
test_octave
:
stage
:
test
stage
:
test
variables
:
variables
:
OPENBLAS_NUM_THREADS
:
1
OPENBLAS_NUM_THREADS
:
1
script
:
script
:
-
make check-octave
-
make check-octave
OCTAVE=/usr/local/octave/$OCTAVE_VERSION/bin/octave
Makefile
View file @
7743fc6f
OCTAVE
?=
octave-cli
OCTAVE
?=
octave-cli
MATLAB
?=
$(
shell
which
matlab
)
MATLAB
?=
matlab
all
:
check-octave check-matlab
all
:
check-octave check-matlab
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment