This is a more useful version of of
9b16ce355debd105b65bb841b300e585e80aefad.
This allows to diagnose errors like forgetting to update Cargo.lock when
Cargo.toml is updated, as errors is reported by git-rebase before a second
`--exec` can be run.
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
# to switch a PR back to draft, mitigating the risk to push a
# failing commit)
- git rebase --rebase-merges $CI_MERGE_REQUEST_DIFF_BASE_SHA
- --exec 'devscripts/gitlab-ci-runbuild.sh cargo build ${FEATURES} ${CARGO_FLAGS}'
- --exec 'git status'
+ --exec 'devscripts/gitlab-ci-runbuild.sh cargo build ${FEATURES} ${CARGO_FLAGS} && git status'
after_script:
# since Git Strategy is "fetch", avoid poluting subsequent runs
# (but as of v16.9 it still won't be run on timeout or cancel)