template / commit
CI pasta time!
.gitlab-ci.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68ea19e..1198475 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,21 @@ stages: # List of stages for jobs, and their order of execution - build-and-test - release +before_script: + - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" + - Set-Variable -Name "time" -Value (date -Format "%H:%m") + - echo ${time} + - echo "started by ${GITLAB_USER_NAME}" + - choco upgrade chocolatey -y + - choco upgrade golang -y + - refreshenv + - go version + - choco install make + - make --version + build-job: + extends: + - .shared_windows_runners stage: build-and-test script: - make all @@ -35,14 +49,4 @@ release: - tags script: - - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - - Set-Variable -Name "time" -Value (date -Format "%H:%m") - - echo ${time} - - echo "started by ${GITLAB_USER_NAME}" - - choco upgrade chocolatey -y - - choco upgrade golang -y - - refreshenv - - go version - - choco install make - - make --version - make release \ No newline at end of file