mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 00:10:07 +01:00
gitlab CI: move the SUITES handling to the template where it matters
Should have been part of 9133693b15.
This fixes an issue with calls to meson_build.sh with an otherwise empty
MESON_TEST_ARGS - thanks to the space before $SUITES it would no longer
the zero-string condition in meson_build.sh.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
94fc9b2200
commit
21824bc6ff
2 changed files with 4 additions and 2 deletions
|
|
@ -475,7 +475,7 @@ freebsd:11.2@container-clean:
|
|||
- echo "CI_JOB_NAME=\"$CI_JOB_NAME\"" >> sshenv
|
||||
- echo "MESON_ARGS=\"$MESON_ARGS\"" >> sshenv
|
||||
- echo "MESON_BUILDDIR=\"$MESON_BUILDDIR\"" >> sshenv
|
||||
- echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS $SUITES\"" >> sshenv
|
||||
- echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS\"" >> sshenv
|
||||
- echo "NINJA_ARGS=\"$NINJA_ARGS\"" >> sshenv
|
||||
- "scp sshenv vm:~/$CI_PROJECT_NAME/.meson_environment"
|
||||
- /app/vmctl exec "cd $CI_PROJECT_NAME ; .gitlab-ci/meson-build.sh" && touch .success || true
|
||||
|
|
@ -515,6 +515,7 @@ freebsd:11.2@container-clean:
|
|||
before_script:
|
||||
- if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
|
||||
- echo "Testing $SUITES"
|
||||
- export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
|
||||
retry:
|
||||
max: 2
|
||||
when: script_failure
|
||||
|
|
|
|||
|
|
@ -355,7 +355,7 @@ freebsd:11.2@container-clean:
|
|||
- echo "CI_JOB_NAME=\"$CI_JOB_NAME\"" >> sshenv
|
||||
- echo "MESON_ARGS=\"$MESON_ARGS\"" >> sshenv
|
||||
- echo "MESON_BUILDDIR=\"$MESON_BUILDDIR\"" >> sshenv
|
||||
- echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS $SUITES\"" >> sshenv
|
||||
- echo "MESON_TEST_ARGS=\"$MESON_TEST_ARGS\"" >> sshenv
|
||||
- echo "NINJA_ARGS=\"$NINJA_ARGS\"" >> sshenv
|
||||
- "scp sshenv vm:~/$CI_PROJECT_NAME/.meson_environment"
|
||||
- /app/vmctl exec "cd $CI_PROJECT_NAME ; .gitlab-ci/meson-build.sh" && touch .success || true
|
||||
|
|
@ -395,6 +395,7 @@ freebsd:11.2@container-clean:
|
|||
before_script:
|
||||
- if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
|
||||
- echo "Testing $SUITES"
|
||||
- export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
|
||||
retry:
|
||||
max: 2
|
||||
when: script_failure
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue