-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (45 loc) · 883 Bytes
/
.gitlab-ci.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This project used to live in Gitlab.
# But you know, open source projects
# are not so discoverable over there :(
image: golang:1.14.0
stages:
- deps
- test
- build
# Globals
variables:
REPO_NAME: gitlab.com/unmultimedio/samplr
before_script:
- export GO111MODULE=on
- go version
- env
- go env
- find *
cache:
paths:
- vendor/
# Jobs
pull dependencies:
stage: deps
script:
- make deps
run linters:
image: registry.gitlab.com/gitlab-org/gitlab-build-images:golangci-lint-alpine
stage: test
script:
- apk add --update make
- make checks
unit tests:
stage: test
script:
- make test
build:
stage: build
variables:
script:
- GOOS=darwin GOARCH=amd64 go build -o build/samplr_mac
- GOOS=linux GOARCH=amd64 go build -o build/samplr_linux
artifacts:
paths:
- build/samplr_mac
- build/samplr_linux