fuzzyworld

template / commit

Testing windows ci.

abdfb73351ca4efaefc0d3aedd33227bee761632 · Pavel Safronov · 2023-01-30 23:58:25 -0800 · parents f6b6f1c144d8

Testing windows ci.
 .gitlab-ci.yml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 985424d..f49975b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,8 @@
 # Copied from
 # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
 
-tags:
+.shared_windows_runners:
+  tags:
   - shared-windows
   - windows
   - windows-1809
@@ -13,22 +14,35 @@ stages:          # List of stages for jobs, and their order of execution
   - test
   - release
 
+before_script:
+ - Set-Variable -Name "time" -Value (date -Format "%H:%m")
+ - echo ${time}
+ - echo "started by ${GITLAB_USER_NAME}"
+
 build-job:       # This job runs in the build stage, which runs first.
+  extends:
+  - .shared_windows_runners
   stage: build
   script:
     - make build
 
 unit-test-job:   # This job runs in the test stage.
+  extends:
+  - .shared_windows_runners
   stage: test    # It only starts when the job in the build stage completes successfully.
   script:
     - make test
 
 lint-test-job:   # This job also runs in the test stage.
+  extends:
+  - .shared_windows_runners
   stage: test    # It can run at the same time as unit-test-job (in parallel).
   script:
     - make lint
 
 release:
+  extends:
+  - .shared_windows_runners
   stage: release
   image: docker:stable
   services:
@@ -51,3 +65,4 @@ release:
       -v /var/run/docker.sock:/var/run/docker.sock \
       -e GITLAB_TOKEN \
       goreleaser/goreleaser release --rm-dist
+