Commit ffc7a481 authored by L. Ellenbeck's avatar L. Ellenbeck

Build: updated pipeline

parent 8b325497
stages: stages:
- build
- test - test
- docs - docs
- update-assembly-info
- build-release
- semantic-release
- release - release
- pre_release - releasetrigger
build: cake:Test:
stage: build
script:
- PowerShell .\build.ps1 -Target Build -Configuration Debug
variables:
GIT_STRATEGY: clone
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
test:
stage: test stage: test
script: script:
- PowerShell .\build.ps1 -Target LinterAndTest -Configuration Debug - PowerShell .\build.ps1 -Target Test -Configuration Debug
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: clone
dependencies:
- build
artifacts: artifacts:
reports: reports:
junit: "./Artifacts/TestResults.xml" junit: "./Artifacts/TestResults.xml"
paths: paths:
- "./Artifacts/*" - "./Artifacts/*"
except: except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
update-assembly-info:
stage: update-assembly-info
script:
- PowerShell .\build.ps1 -Target UpdateAssemblyInfo
variables:
GIT_STRATEGY: none
dependencies:
- test
only:
- master
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
build-release:
stage: build-release
script:
- PowerShell .\build.ps1 -Target Build -Configuration Release
- PowerShell .\build.ps1 -Configuration Release -Target NugetPack
variables:
GIT_STRATEGY: none
dependencies:
- update-assembly-info
only:
- master - master
except: - tags
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
docs: docs:
stage: docs stage: docs
script: script:
- .\publishDocs.ps1 $GITLAB_TOKEN - .\publishDocs.ps1 $GITLAB_TOKEN
variables: variables:
GIT_STRATEGY: none GIT_STRATEGY: clone
dependencies:
- test
only:
- master
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
semantic-release:
stage: semantic-release
script:
- PowerShell .\build.ps1 -Target SemanticRelease
variables:
GIT_STRATEGY: none
dependencies:
- test
only: only:
- master - tags
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
release: cake:Release:
before_script:
stage: release stage: release
script: script:
- PowerShell .\build.ps1 -Target Build -Configuration Release - PowerShell .\build.ps1 -Target Release -Configuration Release --nugetApiKey="${NUGET_API_KEY}"
- PowerShell .\build.ps1 -Configuration Release -Target NugetPack
- PowerShell .\build.ps1 -Configuration Release -Target NugetPush --nugetApiKey="$NUGET_API_KEY"
variables: variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
dependencies:
- cake:Test
artifacts: artifacts:
paths: paths:
- "./Artifacts/*" - "./Artifacts/*"
only: only:
- tags - tags
pre_release: cake:Prerelease:
stage: pre_release stage: release
script: script:
- PowerShell .\build.ps1 -Target Build -Configuration Release - PowerShell .\build.ps1 -Target Prerelease -Configuration Release
variables: variables:
GIT_STRATEGY: clone GIT_STRATEGY: clone
dependencies:
- cake:Test
artifacts: artifacts:
paths: paths:
- "./Artifacts/*" - "./Artifacts/*"
when: manual
except: except:
- tags - tags
- master - master
\ No newline at end of file
cake:GitlabRelease:
stage: releasetrigger
script:
- PowerShell .\build.ps1 -Target GitlabRelease --GitlabProjectPath="${CI_PROJECT_PATH}" --gitlabProjectId="${CI_PROJECT_ID}" --gitlabToken="${GITLAB_TOKEN}"
only:
- master
\ No newline at end of file
{
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "eslint"
}],
["@semantic-release/release-notes-generator", {
"preset": "eslint",
}],
["@semantic-release/gitlab", {
"preset": "eslint",
"gitlabUrl": "https://git.rwth-aachen.de"
}],
["@semantic-release/exec", {
"prepareCmd" : "echo ${nextRelease.version}",
"publishCmd" : "echo test"
}],
["@semantic-release/git", {
"preset": "eslint",
"assets": "src/**/Properties/AssemblyInfo.cs",
"message": "Chore: ${nextRelease.version}\n\n${nextRelease.notes}"
}]
]
}
mode: ContinuousDeployment
next-version: 1.0.0
major-version-bump-message: 'Breaking:'
minor-version-bump-message: '(Update|New):'
patch-version-bump-message: 'Fix:'
no-bump-message: '.*'
commit-message-incrementing: Enabled
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<packages> <packages>
<package id="Cake" version="0.28.0" /> <package id="Cake" version="0.36.0" />
</packages> </packages>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment