DiscordClient/.onedev-buildspec.yml

40 lines
803 B
YAML
Raw Permalink Normal View History

2024-03-24 17:04:47 +01:00
version: 29
jobs:
- name: Build and test
2024-03-27 16:11:26 +01:00
jobExecutor: shell-executor
2024-03-24 17:04:47 +01:00
steps:
2024-03-27 16:10:10 +01:00
- !CheckoutStep
name: Checkout dev
cloneCredential: !DefaultCredential {}
withLfs: false
withSubmodules: false
condition: ALWAYS
2024-03-24 17:04:47 +01:00
- !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