Update .gitlab-ci.yml

This commit is contained in:
Kai Kriegel 2020-09-17 15:41:21 +00:00
parent 1640a410ff
commit bb4bfedf53

View File

@ -24,7 +24,7 @@
# place project specific paths in variables to make the rest of the script more generic # place project specific paths in variables to make the rest of the script more generic
variables: variables:
EXE_RELEASE_FOLDER: 'Borepin\bin\Release' EXE_RELEASE_FOLDER: 'Borepin\bin\Release'
MSI_RELEASE_FOLDER: 'Setup\bin\Release' UWP_RELEASE_FOLDER: 'Borepin\Borepin.UWP\
TEST_FOLDER: 'Tests\bin\Release' TEST_FOLDER: 'Tests\bin\Release'
# DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds' # DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
NUGET_PATH: 'C:\NuGet\nuget.exe' NUGET_PATH: 'C:\NuGet\nuget.exe'
@ -87,6 +87,23 @@ build_Android:
- Borepin/Borepin.Android/bin/Release/ # saving apk to copy to deploy folder - Borepin/Borepin.Android/bin/Release/ # saving apk to copy to deploy folder
- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests - '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
build_iOS:
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" /t:Borepin.iOS /p:Configuration=Release /p:Platform=iPhone /p:ArchiveOnBuild=true' # build the project /p:AndroidKeyStore=True
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- Borepin/Borepin.iOS/bin/iPhone/Release/Borepin.ipa
- Borepin/Borepin.iOS/bin/iPhone/Release/Borepin.app.dSYM
- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
# test_job: # test_job:
# stage: test # stage: test
# tags: # tags: