mirror of
https://onedev.fprog.nl/DiscordClient
synced 2026-02-25 05:53:41 +01:00
Add .onedev-buildspec.yml
This commit is contained in:
parent
e717332b12
commit
a693beb118
32
.onedev-buildspec.yml
Normal file
32
.onedev-buildspec.yml
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
version: 29
|
||||||
|
jobs:
|
||||||
|
- name: Build and test
|
||||||
|
steps:
|
||||||
|
- !CommandStep
|
||||||
|
name: Build and test
|
||||||
|
runInContainer: false
|
||||||
|
interpreter: !DefaultInterpreter
|
||||||
|
commands: |
|
||||||
|
git checkout dev
|
||||||
|
if dotnet build
|
||||||
|
then
|
||||||
|
git checkout successful-build
|
||||||
|
git merge --no-ff dev
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if dotnet test
|
||||||
|
then
|
||||||
|
git checkout successful-test
|
||||||
|
git merge --no-ff dev
|
||||||
|
fi
|
||||||
|
useTTY: true
|
||||||
|
condition: ALWAYS
|
||||||
|
triggers:
|
||||||
|
- !BranchUpdateTrigger
|
||||||
|
branches: dev
|
||||||
|
retryCondition: never
|
||||||
|
maxRetries: 3
|
||||||
|
retryDelay: 30
|
||||||
|
timeout: 3600
|
||||||
Loading…
Reference in a new issue