From 8bbc1ee4e98e90712e8b5811ba67e63eb5f59518 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 30 Oct 2022 06:35:23 +0200 Subject: [PATCH 49/49] CI: Do autogame test on mac See osdn #45997 Signed-off-by: Marko Lindqvist --- scripts/ci-build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/ci-build.sh b/scripts/ci-build.sh index 5f9630ab7d..d764a18c49 100755 --- a/scripts/ci-build.sh +++ b/scripts/ci-build.sh @@ -68,12 +68,19 @@ cd build --enable-fcmp=gtk3,gtk4,qt,cli \ --enable-fcdb=sqlite3,mysql,postgres,odbc \ --enable-freeciv-manual \ + --prefix=${HOME}/freeciv/mac-at \ || (let config_exit_status=$? \ && echo "Config exit status: $config_exit_status" \ && cat config.log \ && exit $config_exit_status) make -j$(sysctl -n hw.logicalcpu) make install + +echo "Running Freeciv server autogame" +cd ${HOME}/freeciv/mac-at/bin/ +./freeciv-server --Announce none -e -F --read ${basedir}/scripts/test-autogame.serv + +echo "Freeciv server autogame successful!" ;; "mac-meson") @@ -91,12 +98,19 @@ meson .. \ -Dsyslua=true \ -Dclients=gtk3.22,sdl2,gtk4 \ -Dfcmp=gtk3,gtk4,cli \ + -Dprefix=${HOME}/freeciv/mac-meson \ || (let meson_exit_status=$? \ && echo "meson.log:" \ && cat meson-logs/meson-log.txt \ && exit $meson_exit_status) ninja ninja install + +echo "Running Freeciv server autogame" +cd ${HOME}/freeciv/mac-meson/bin/ +./freeciv-server --Announce none -e -F --read ${basedir}/scripts/test-autogame.serv + +echo "Freeciv server autogame successful!" ;; "clang_debug") -- 2.35.1