Add docker build to travis

This commit is contained in:
Jordan Brown
2019-12-30 14:34:39 -05:00
parent f7492f02be
commit 9bb57f982a
+13 -4
View File
@@ -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