mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Appveyor CI
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
version: '{build}'
|
||||
skip_branch_with_pr: true
|
||||
shallow_clone: true
|
||||
build_script:
|
||||
- ps: ./tools/appveyor/build.ps1
|
||||
- ps: "$deployPath = $env:APPVEYOR_BUILD_FOLDER + '/deploy'; bash ./tools/appveyor/deploy.sh $deployPath"
|
||||
- ps: "[System.IO.Compression.ZipFile]::CreateFromDirectory($env:APPVEYOR_BUILD_FOLDER + '/deploy', $env:APPVEYOR_BUILD_FOLDER + '/deploy.zip')"
|
||||
artifacts:
|
||||
- path: deploy.zip
|
||||
@@ -0,0 +1,12 @@
|
||||
$BYOND_MAJOR=512
|
||||
$BYOND_MINOR=1427
|
||||
if(!(Test-Path -Path "C:/byond")){
|
||||
Invoke-WebRequest "http://www.byond.com/download/build/$BYOND_MAJOR/$BYOND_MAJOR.${BYOND_MINOR}_byond.zip" -o C:/byond.zip
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:/byond.zip", "C:/")
|
||||
Remove-Item C:/byond.zip
|
||||
}
|
||||
|
||||
Set-Location $env:APPVEYOR_BUILD_FOLDER
|
||||
|
||||
&"C:/byond/bin/dm.exe" -max_errors 0 paradise.dme
|
||||
exit $LASTEXITCODE
|
||||
@@ -0,0 +1,21 @@
|
||||
#First arg is path to where you want to deploy
|
||||
#creates a work tree free of everything except what's necessary to run the game
|
||||
|
||||
mkdir -p \
|
||||
$1/_maps \
|
||||
$1/config \
|
||||
$1/goon \
|
||||
$1/strings \
|
||||
|
||||
if [ -d ".git" ]; then
|
||||
# Control will enter here if $DIRECTORY exists.
|
||||
mkdir -p $1/.git/logs
|
||||
cp -r .git/logs/* $1/.git/logs/
|
||||
fi
|
||||
|
||||
cp paradise.dmb paradise.rsc rust_g.dll $1/
|
||||
cp -r _maps/* $1/_maps/
|
||||
cp -r config/* $1/config/
|
||||
cp -r goon/* $1/goon/
|
||||
cp -r config/example/* $1/config/
|
||||
cp -r strings/* $1/strings/
|
||||
Reference in New Issue
Block a user