summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index baa40d7..9cec69e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,9 @@
image: golang:alpine
+before_script:
+ - apk add --no-cache git
+ - go install github.com/magefile/mage@latest
+
stages:
- build
- test
@@ -10,16 +14,10 @@ go_build:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 0
- before_script:
- - apk add --no-cache git
script:
- - go install github.com/magefile/mage@latest
- mage build
go_test:
stage: test
- before_script:
- - apk add --no-cache git
script:
- - go install github.com/magefile/mage@latest
- mage test