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
Johannes Pfeifer
dynare
Commits
d61df2e6
Unverified
Commit
d61df2e6
authored
Dec 02, 2020
by
Sébastien Villemot
Browse files
CI: make Octave version configurable
parent
bd97fdc1
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d61df2e6
...
...
@@ -3,6 +3,7 @@ variables:
TERM
:
linux
MATLAB_VERSION
:
R2020b
OLD_MATLAB_VERSION
:
R2014a
OCTAVE_VERSION
:
5.2.0
# The next stanza creates the version number used for the source tarball and the
# binary packages. Here are the following possible cases:
...
...
@@ -28,7 +29,7 @@ build_binaries:
stage
:
build
script
:
-
autoreconf -si
-
./configure --with-matlab=/usr/local/MATLAB/$MATLAB_VERSION PACKAGE_VERSION=$VERSION PACKAGE_STRING="dynare $VERSION"
-
./configure --with-matlab=/usr/local/MATLAB/$MATLAB_VERSION
--with-octave=/usr/local/octave/$OCTAVE_VERSION
PACKAGE_VERSION=$VERSION PACKAGE_STRING="dynare $VERSION"
-
make -j $(nproc) LN_S="cp -p"
artifacts
:
paths
:
...
...
@@ -70,7 +71,7 @@ pkg_source:
-
rm doc/manual/source/_static/mathjax && sed -i "/^mathjax_path *=/d" doc/manual/source/conf.py
-
'
for
f
in
configure.ac
preprocessor/configure.ac
mex/build/matlab/configure.ac
mex/build/octave/configure.ac;
do
sed
-i
"s/^AC_INIT(\[\(.*\)\],\s*\[\(.*\)\])/AC_INIT([\1],
[$VERSION])/"
$f;
done'
-
autoreconf -si
-
./configure --with-matlab=/usr/local/MATLAB/$MATLAB_VERSION
-
./configure --with-matlab=/usr/local/MATLAB/$MATLAB_VERSION
--with-octave=/usr/local/octave/$OCTAVE_VERSION
-
make dist
artifacts
:
paths
:
...
...
@@ -156,7 +157,7 @@ test_octave:
OPENBLAS_NUM_THREADS
:
1
script
:
-
autoreconf -si
-
./configure --disable-matlab
-
./configure --disable-matlab
--with-octave=/usr/local/octave/$OCTAVE_VERSION
-
make -j $(nproc) -C tests check-octave
artifacts
:
paths
:
...
...
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