From 786daabe36cbb605fa17411d2016bbadd3ffeb74 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 25 Oct 2019 18:59:36 +0000 Subject: [PATCH] Gitlab CI --- .gitlab-ci.yml | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..3bcfee57 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,57 @@ +stages: + - build + - test + +variables: + BUILD_APP: "MSBuild.exe" + TEST_APP: "vstest.console.exe" + +.build: + stage: build + cache: + paths: + - build/ + tags: + - build + - cpp + - dotnet + - windows + - powershell + script: + - "./generate.bat" + - "& \"$BUILD_APP\" build/OpenAssetTools.sln -t:restore -t:build -m -p:Configuration=Release -p:Platform=x86 -p:RestorePackagesPath=build/packages" + +build:withartifacts: + stage: build + extends: .build + only: + refs: + - master + - develop + artifacts: + name: "OpenAssetTools" + paths: + - build/bin + +build:noartifacts: + stage: build + extends: .build + except: + refs: + - master + - develop + + +test: + stage: test + cache: + paths: + - build/ + tags: + - test + - cpp + - dotnet + - windows + - powershell + script: + - "& \"$TEST_APP\" --InIsolation build/lib/Release_X86/tests/ZoneCodeGeneratorTests.dll build/lib/Release_X86/tests/ZoneCommonTests.dll"