From b0c4641f02a15954aa195456abbe08389540e51f Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 7 Oct 2024 21:11:41 -0400 Subject: build server unit testing and build sim --- .onedev-buildspec.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) (limited to '.onedev-buildspec.yml') diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index bfccb25..9daefd0 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: '** -master' + jobDependencies: + - jobName: Staging Tests + requireSuccessful: true + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 3600 -- cgit