From 9bb57f982a39bf1b87682e0c82e21bf30ef3429a Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 30 Dec 2019 14:34:39 -0500 Subject: [PATCH] Add docker build to travis --- .travis.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a77207bceb..4a93935100 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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