Update .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2020-09-17 14:42:11 +00:00
parent cd73c32454
commit 47632806ec

View File

@ -45,7 +45,6 @@ build_base:
# only:
# - tags # the build process will only be started by git tag commits
script:
- whoami
- '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" /p:Configuration=Release /target:Borepin' # build the project
artifacts:
@ -63,7 +62,6 @@ build_UWP:
# only:
# - tags # the build process will only be started by git tag commits
script:
- whoami
- '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" /p:Configuration=Release /target:Borepin_UWP' # build the project
artifacts:
@ -73,6 +71,22 @@ build_UWP:
- '$env:MSI_RELEASE_FOLDER\YourApp Setup.msi' # saving msi to copy to deploy folder
- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
build_Android:
stage: build
tags:
- xamarin
- windows
# only:
# - tags # the build process will only be started by git tag commits
script:
- '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" /p:Configuration=Release /target:Borepin_Android /t:PackageForAndroid /t:SignAndroidPackage /p:AndroidKeyStore=True' # build the project
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- Borepin/Borepin.Android/bin/QA/com.company.borepin-Signed.apk # saving apk to copy to deploy folder
- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
# test_job:
# stage: test
# tags: