diff options
author | vnugent <public@vaughnnugent.com> | 2024-10-07 21:27:09 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-10-07 21:27:09 -0400 |
commit | 707d0b512b5f8e254188a9d15342cd011ea5b257 (patch) | |
tree | b50e5c97235fbc9a5c6e566e524977c3008d48f1 /.onedev-buildspec.yml | |
parent | 4fafa9e4d32e15dbd30ed5082bcd999fd5b536da (diff) | |
parent | aee14fc8cb17ca587b0bb87b66c330ef1da1ee62 (diff) |
Merge branch 'feature-devop-testing' into develop
Diffstat (limited to '.onedev-buildspec.yml')
-rw-r--r-- | .onedev-buildspec.yml | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index bfccb25..24035dc 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -1,9 +1,9 @@ -version: 33 +version: 35 jobs: - name: Repo Sync Push steps: - !PushRepository - name: Github sync push + name: Github push sync remoteUrl: https://github.com/VnUgE/VNLib.Core.git userName: VnUgE passwordSecret: git-access-token @@ -25,3 +25,61 @@ jobs: maxRetries: 3 retryDelay: 30 timeout: 3600 +- name: Staging Tests + steps: + - !CheckoutStep + name: banch checkout + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Initalize dependencies + runInContainer: false + interpreter: !DefaultInterpreter + commands: | + task -t .\Module.Taskfile.yaml dev-init + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Run unit tests + runInContainer: false + interpreter: !DefaultInterpreter + commands: | + task -t .\Module.Taskfile.yaml test + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: '** -master' + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 3600 +- name: Test build + steps: + - !CheckoutStep + name: clone + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false + checkoutPath: '@project_name@/' + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: VNBuild Build + runInContainer: false + interpreter: !DefaultInterpreter + commands: | + vnbuild build -S + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: develop + jobDependencies: + - jobName: Staging Tests + requireSuccessful: true + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 3600 |