mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-02 13:34:49 +00:00
Adding a few CI install helpers (#7893)
This commit is contained in:
10
tools/ci/build.ps1
Executable file
10
tools/ci/build.ps1
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
if(!(Test-Path -Path "C:/byond")){
|
||||||
|
bash tools/ci/download_byond.sh
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:/byond.zip", "C:/")
|
||||||
|
Remove-Item C:/byond.zip
|
||||||
|
}
|
||||||
|
|
||||||
|
bash tools/ci/install_node.sh
|
||||||
|
bash tools/build/build -Werror
|
||||||
|
|
||||||
|
exit $LASTEXITCODE
|
||||||
10
tools/ci/install_node.sh
Executable file
10
tools/ci/install_node.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source _build_dependencies.sh
|
||||||
|
|
||||||
|
if [[ -e ~/.nvm/nvm.sh ]]; then
|
||||||
|
source ~/.nvm/nvm.sh
|
||||||
|
nvm install $NODE_VERSION
|
||||||
|
nvm use $NODE_VERSION
|
||||||
|
fi
|
||||||
9
tools/ci/install_rust_g.sh
Executable file
9
tools/ci/install_rust_g.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source _build_dependencies.sh
|
||||||
|
|
||||||
|
mkdir -p ~/.byond/bin
|
||||||
|
wget -nv -O ~/.byond/bin/librust_g.so "https://github.com/tgstation/rust-g/releases/download/$RUST_G_VERSION/librust_g.so"
|
||||||
|
chmod +x ~/.byond/bin/librust_g.so
|
||||||
|
ldd ~/.byond/bin/librust_g.so
|
||||||
26
tools/ci/run_server.sh
Executable file
26
tools/ci/run_server.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
MAP=$1
|
||||||
|
|
||||||
|
echo Testing $MAP
|
||||||
|
|
||||||
|
tools/deploy.sh ci_test
|
||||||
|
mkdir ci_test/config
|
||||||
|
mkdir ci_test/data
|
||||||
|
|
||||||
|
#test config
|
||||||
|
cp tools/ci/ci_config.txt ci_test/config/config.txt
|
||||||
|
|
||||||
|
#set the map
|
||||||
|
cp maps/$MAP.json ci_test/data/next_map.json
|
||||||
|
|
||||||
|
cd ci_test
|
||||||
|
DreamDaemon vorestation.dmb -close -trusted -verbose -params "log-directory=ci"
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
mkdir -p data/screenshots_new
|
||||||
|
cp -r ci_test/data/screenshots_new data/screenshots_new
|
||||||
|
|
||||||
|
cat ci_test/data/logs/ci/clean_run.lk
|
||||||
Reference in New Issue
Block a user