Files
Bubberstation/tools/ci/run_server.sh
mrmanlikesbtandGitHub f5e471ce1e Adds exclude_from_ci support to unit tests, again (#96545)
## 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
2026-06-22 04:13:45 +02:00

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