2018-09-12 18:53:44 +02:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2018-09-13 16:50:39 +02:00
|
|
|
TERM: linux
|
2018-09-12 18:53:44 +02:00
|
|
|
|
2018-09-12 18:49:48 +02:00
|
|
|
build_binaries:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
|
|
|
- './configure --with-matlab=$(dirname $(dirname $(readlink -f `which matlab`))) MATLAB_VERSION=$(echo version | matlab -nodesktop -nodisplay -nosplash 2>/dev/null | sed -En "/ans\ =/!d;n;n;s/^[^0-9]*([0-9]+\.[0-9]+).*$/\1/;p")'
|
2018-09-12 19:08:43 +02:00
|
|
|
- make -j $(nproc) LN_S="cp -p"
|
2018-09-12 18:49:48 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-09-12 19:08:43 +02:00
|
|
|
- matlab/preprocessor*/*
|
2018-09-12 18:49:48 +02:00
|
|
|
- mex/octave/
|
|
|
|
- mex/matlab/
|
|
|
|
- dynare++/src/dynare++
|
|
|
|
|
|
|
|
build_doc:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
2018-09-12 19:08:43 +02:00
|
|
|
- ./configure --disable-matlab --disable-octave
|
2018-09-12 18:49:48 +02:00
|
|
|
- make -j $(nproc) info pdf html
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- doc/dynare.info*
|
|
|
|
- doc/dynare.html
|
|
|
|
- doc/dynare.pdf
|
2018-09-13 16:18:23 +02:00
|
|
|
|
|
|
|
testsuite_matlab:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
|
|
|
- './configure --disable-octave --with-matlab=$(dirname $(dirname $(readlink -f `which matlab`))) MATLAB_VERSION=$(echo version | matlab -nodesktop -nodisplay -nosplash 2>/dev/null | sed -En "/ans\ =/!d;n;n;s/^[^0-9]*([0-9]+\.[0-9]+).*$/\1/;p")'
|
|
|
|
- make -j $(($(nproc) / 2)) -C tests check-matlab
|
2018-09-13 16:50:39 +02:00
|
|
|
- cat tests/run_test_matlab_output.txt
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tests/*.m.log
|
|
|
|
- tests/*.m.trs
|
|
|
|
- tests/*/*.m.log
|
|
|
|
- tests/*/*.m.trs
|
2018-09-13 16:18:23 +02:00
|
|
|
dependencies:
|
|
|
|
- build_binaries
|
|
|
|
|
|
|
|
testsuite_octave:
|
|
|
|
stage: test
|
|
|
|
variables:
|
|
|
|
OPENBLAS_NUM_THREADS: 1
|
|
|
|
script:
|
|
|
|
- autoreconf -si
|
|
|
|
- ./configure --disable-matlab
|
|
|
|
- make -j $(nproc) -C tests check-octave
|
2018-09-13 16:50:39 +02:00
|
|
|
- cat tests/run_test_octave_output.txt
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tests/*.o.log
|
|
|
|
- tests/*.o.trs
|
|
|
|
- tests/*/*.o.log
|
|
|
|
- tests/*/*.o.trs
|
2018-09-13 16:18:23 +02:00
|
|
|
dependencies:
|
|
|
|
- build_binaries
|
|
|
|
only:
|
|
|
|
- tags
|
|
|
|
- schedules
|
|
|
|
- web
|