mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
## About The Pull Request When I was working on #96368 I was unaware of the following: <img width="584" height="294" alt="image" src="https://github.com/user-attachments/assets/a6578a46-04e8-4316-a2d6-5aaadffbdea6" /> So I'm fixing it. ## Why It's Good For The Game Sorry downstreams ## Changelog No user facing changes
35 lines
704 B
Bash
35 lines
704 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
MAP=$1
|
|
MAP_CONFIG=${2:-""}
|
|
|
|
echo Testing $MAP
|
|
|
|
tools/deploy.sh ci_test
|
|
mkdir -p ci_test/config
|
|
mkdir -p ci_test/data
|
|
|
|
#test config
|
|
cp tools/ci/ci_config.txt ci_test/config/config.txt
|
|
if [ -n "$MAP_CONFIG" ]; then
|
|
echo "$MAP_CONFIG" > ci_test/config/maps.txt
|
|
fi
|
|
|
|
#set the map
|
|
cp _maps/$MAP.json ci_test/data/next_map.json
|
|
|
|
cd ci_test
|
|
DreamDaemon tgstation.dmb -close -trusted -verbose -params "log-directory=ci"
|
|
|
|
cd ..
|
|
|
|
mkdir -p data
|
|
if [ -d "ci_test/data/screenshots_new" ]; then
|
|
mkdir -p data/screenshots_new
|
|
cp -r ci_test/data/screenshots_new data/screenshots_new
|
|
fi
|
|
cp ci_test/data/unit_tests.json data/unit_tests.json
|
|
|
|
cat ci_test/data/logs/ci/clean_run.lk
|