-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (32 loc) · 921 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
stages:
- test
- build
image: golang:1.11-stretch
before_script:
- mkdir -p $GOPATH/src/github.com/BytemarkHosting/docker-machine-driver-bytemark
- cp -r * $GOPATH/src/github.com/BytemarkHosting/docker-machine-driver-bytemark
- go get -t github.com/BytemarkHosting/docker-machine-driver-bytemark/...
test:
script:
- go test github.com/BytemarkHosting/docker-machine-driver-bytemark/...
.build: &build
stage: build
script:
- apt update
- apt install -y zip
- go build github.com/BytemarkHosting/docker-machine-driver-bytemark
- zip docker-machine-driver-bytemark-$GOOS-$GOARCH.zip docker-machine-driver-bytemark
artifacts:
paths:
- ./docker-machine-driver-bytemark-$GOOS-$GOARCH.zip
expire_in: '1 week'
build-linux-amd64:
<<: *build
variables:
GOOS: linux
GOARCH: amd64
build-darwin-amd64:
<<: *build
variables:
GOOS: darwin
GOARCH: amd64