Add AppVeyor CI

Because we're adding otapi3 on a different branch it is now necessary to
have the appveyor CI config versioned so that the other branch can have
its own build routine.
This commit is contained in:
Lucas Nicodemus 2021-12-07 21:02:19 -08:00
parent f3b1a84821
commit d70f715616

56
appveyor.yml Normal file
View file

@ -0,0 +1,56 @@
version: '{build}'
max_jobs: 16
image: Visual Studio 2019
build_script:
- ps: >-
git submodule update --init --recursive
cd ./TerrariaServerAPI/
nuget restore TShock.4.OTAPI.sln
msbuild TShock.4.OTAPI.sln /p:Configuration=Debug
cd ./TShock.Modifications.Bootstrapper/bin/Debug/
./TShock.Modifications.Bootstrapper.exe
cd ../../../
msbuild ./TerrariaServerAPI/TerrariaServerAPI.csproj /p:Configuration=Debug
msbuild TShock.4.OTAPI.sln /p:Configuration=Release
cd ./TShock.Modifications.Bootstrapper/bin/Release/
./TShock.Modifications.Bootstrapper.exe
cd ../../../
msbuild ./TerrariaServerAPI/TerrariaServerAPI.csproj /p:Configuration=Release
cd ../
nuget restore TShock.sln
msbuild ./TShockAPI/TShockAPI.csproj /p:Configuration=Release
msbuild ./TShockAPI/TShockAPI.csproj /p:Configuration=Debug
artifacts:
- path: ./TShockAPI/bin/Debug/
name: TShockAVDebug
- path: ./TShockAPI/bin/Release/
name: TShockAVRelease