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

CI: take advantage of the new “needs” keyword

In particular, this allows us to split the “test” and “pkg” stages, without
increasing the execution time.

(manually cherry picked from commit ac59b220)
parent b0660120
Branches
Tags
No related merge requests found
......@@ -20,7 +20,8 @@ before_script:
stages:
- build
- test_and_pkg
- test
- pkg
- deploy
build_binaries:
......@@ -64,7 +65,7 @@ build_doc:
expire_in: 1 week
pkg_source:
stage: test_and_pkg
stage: pkg
script:
- 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'
......@@ -75,10 +76,10 @@ pkg_source:
paths:
- dynare-*.tar.xz
expire_in: 1 week
dependencies: []
needs: []
pkg_windows:
stage: test_and_pkg
stage: pkg
script:
- ln -s ~/tarballs windows/deps/
- make -C windows
......@@ -96,11 +97,10 @@ pkg_windows:
- windows/7z/*
- windows/zip/*
expire_in: 1 week
dependencies:
- build_doc
needs: [ "build_doc" ]
pkg_macOS:
stage: test_and_pkg
stage: pkg
script:
- ln -s ~/tarballs macOS/deps/
- make -C macOS
......@@ -115,11 +115,10 @@ pkg_macOS:
paths:
- macOS/pkg/*
expire_in: 1 week
dependencies:
- build_doc
needs: [ "build_doc" ]
.test_matlab_template:
stage: test_and_pkg
stage: test
artifacts:
paths:
- tests/*.m.log
......@@ -132,8 +131,7 @@ pkg_macOS:
- tests/*/*/*.jnl
- tests/run_test_matlab_output.txt
when: always
dependencies:
- build_binaries
needs: [ "build_binaries" ]
test_matlab:
extends: .test_matlab_template
......@@ -153,7 +151,7 @@ test_old_matlab:
when: manual
test_octave:
stage: test_and_pkg
stage: test
variables:
OPENBLAS_NUM_THREADS: 1
script:
......@@ -172,12 +170,11 @@ test_octave:
- tests/*/*/*.jnl
- tests/run_test_octave_output.txt
when: always
dependencies:
- build_binaries
needs: [ "build_binaries" ]
when: manual
test_dynare++:
stage: test_and_pkg
stage: test
script:
- autoreconf -si
- ./configure --disable-matlab --disable-octave
......@@ -186,8 +183,7 @@ test_dynare++:
- touch dynare++/*/*.a dynare++/*/*/*.a
- touch dynare++/integ/src/quadrature-points dynare++/src/dynare++
- make -C dynare++ check
dependencies:
- build_binaries
needs: [ "build_binaries" ]
artifacts:
paths:
- dynare++/kord/out.txt
......@@ -196,6 +192,10 @@ test_dynare++:
- dynare++/tests/*.mat
- dynare++/tests/*.dump
# For the deploy jobs, we don’t use the “needs” keyword, since we don’t want
# those jobs to start before the “test” and “pkg” stages have succeeded. Hence
# we stick to the “dependencies” keyword.
deploy_snapshot_enterprise:
stage: deploy
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment