mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Add docker build to travis
This commit is contained in:
+13
-4
@@ -5,6 +5,7 @@ git:
|
||||
matrix:
|
||||
include:
|
||||
- env:
|
||||
- DockerBuild=false
|
||||
- DMAPI=true
|
||||
- BYOND_MAJOR="511"
|
||||
- BYOND_MINOR="1385"
|
||||
@@ -21,6 +22,7 @@ matrix:
|
||||
- libc6-i386
|
||||
- libstdc++6:i386
|
||||
- env:
|
||||
- DockerBuild=false
|
||||
- DMAPI=false
|
||||
- CONFIG=Debug
|
||||
name: "Test Server Debug"
|
||||
@@ -33,6 +35,7 @@ matrix:
|
||||
directories:
|
||||
- $HOME/.nuget/packages:
|
||||
- env:
|
||||
- DockerBuild=false
|
||||
- DMAPI=false
|
||||
- CONFIG=Release
|
||||
name: "Test Server Release"
|
||||
@@ -44,11 +47,17 @@ matrix:
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.nuget/packages:
|
||||
- env:
|
||||
- DockerBuild=true
|
||||
name: "Docker Build"
|
||||
services:
|
||||
- docker
|
||||
|
||||
install:
|
||||
- if [ $DMAPI = true ]; then build/install_byond.sh; fi
|
||||
- if [ $DMAPI = false ]; then dotnet restore tgstation-server.sln; fi
|
||||
- if [ $DockerBuild = false ] && [ $DMAPI = true ]; then build/install_byond.sh; fi
|
||||
- if [ $DockerBuild = false ] && [ $DMAPI = false ]; then dotnet restore tgstation-server.sln; fi
|
||||
|
||||
script:
|
||||
- if [ $DMAPI = true ]; then tests/DMAPI/build_byond.sh || travis_terminate 1; fi
|
||||
- if [ $DMAPI = false ]; then build/test_core.sh; fi
|
||||
- if [ $DockerBuild = false ] && [ $DMAPI = true ]; then tests/DMAPI/build_byond.sh || travis_terminate 1; fi
|
||||
- if [ $DockerBuild = false ] && [ $DMAPI = false ]; then build/test_core.sh; fi
|
||||
- if [ $DockerBuild = true ]; then docker build . -f build/Dockerfile; fi
|
||||
|
||||
Reference in New Issue
Block a user