summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 1abb0c4609cb79f0c1e8bcce1460cca31416844e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
image: golang:alpine

stages:
  - build
  - test

go_build:
  stage: build
  variables:
    GOOS: linux
    GOARCH: amd64
    CGO_ENABLED: 0
  before_script:
    - apk add --no-cache git
  script:
    - go install github.com/magefile/mage@latest
    - go build -o stanuki cmd/stanuki/main.go

go_test:
  stage: test
  before_script:
    - apk add --no-cache git
  script:
    - go install github.com/magefile/mage@latest
    - mage test