Feature #1565 ยป 0066-CI-Run-rulesets_upgrade.sh-test-on-meson-build-job.patch
| scripts/ci-build.sh | ||
|---|---|---|
|
cd ..
|
||
|
fi
|
||
|
# Fetch S3_3 in the background for the ruleset upgrade test
|
||
|
git fetch --no-tags --quiet https://github.com/freeciv/freeciv.git S3_3:S3_3 &
|
||
|
mkdir build
|
||
|
cd build
|
||
|
meson setup .. \
|
||
| ... | ... | |
|
ninja rulesets_save.sh
|
||
|
./rulesets_save.sh
|
||
|
# Check ruleset upgrade
|
||
|
echo "Ruleset upgrade"
|
||
|
echo "Preparing test data"
|
||
|
../tests/rs_test_res/upgrade_ruleset_sync.bash
|
||
|
echo "Checking ruleset upgrade"
|
||
|
ninja rulesets_upgrade.sh
|
||
|
./rulesets_upgrade.sh
|
||
|
echo "Running Freeciv server autogame"
|
||
|
cd ${HOME}/freeciv/meson/bin/
|
||
|
./freeciv-server --Announce none -e -F --read ${basedir}/scripts/test-autogame.serv
|
||
| ... | ... | |
|
;;
|
||
|
autotools)
|
||
|
# Fetch S3_3 in the background for the ruleset upgrade test
|
||
|
git fetch --no-tags --quiet https://github.com/freeciv/freeciv.git S3_3:S3_3 &
|
||
|
# Configure and build Freeciv
|
||
|
mkdir build
|
||
| ... | ... | |
|
make install
|
||
|
echo "Freeciv build successful!"
|
||
|
# Check ruleset upgrade
|
||
|
echo "Ruleset upgrade"
|
||
|
echo "Preparing test data"
|
||
|
../tests/rs_test_res/upgrade_ruleset_sync.bash
|
||
|
echo "Checking ruleset upgrade"
|
||
|
./tests/rulesets_upgrade.sh
|
||
|
# Check ruleset autohelp generation
|
||
|
echo "Checking ruleset auto help generation"
|
||
|
./tests/rulesets_autohelp.sh
|
||