template / commit
Slight cleanup and moving the key upgrade/install stuff to before_script
.gitlab-ci.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1464f1f..bc372bf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,28 +17,17 @@ before_script: - Set-Variable -Name "time" -Value (date -Format "%H:%m") - echo ${time} - echo "started by ${GITLAB_USER_NAME}" + - choco upgrade golang -y + - refreshenv + - go version + - choco install make + - make --version build-job: # This job runs in the build stage, which runs first. extends: - .shared_windows_runners stage: build script: - - where go - - echo $env:PATH - - go version - - echo $env:GOROOT - # - choco install tree - # - tree C:\ProgramData\chocolatey\lib\golang /f - # - tree C:\ProgramData\chocolatey /f - # - choco install golang - - choco upgrade golang -y - # - type C:\ProgramData\chocolatey\logs\chocolatey.log - - refreshenv - - where go - - go version - - echo "done?" - - choco install make - - make --version - make build unit-test-job: # This job runs in the test stage. @@ -80,4 +69,3 @@ release: -v /var/run/docker.sock:/var/run/docker.sock \ -e GITLAB_TOKEN \ goreleaser/goreleaser release --rm-dist -