-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
39 lines (34 loc) · 933 Bytes
/
.gitlab-ci.yml
File metadata and controls
39 lines (34 loc) · 933 Bytes
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
image: golang:1.6
before_script:
- mkdir -p $GOPATH/src/ci.guzzler.io/guzzler
- cp -r ../../guzzler $GOPATH/src/ci.guzzler.io
- cd $GOPATH/src/ci.guzzler.io/guzzler/corcel
stages:
- build
- deploy
create_binaries:
stage: build
script:
- make install
- make build
- make test
upload_artefacts:
stage: deploy
script:
- go get -t ./...
- go get github.com/mattn/go-isatty
- go get github.com/mitchellh/gox
- gox -os="linux windows darwin" -arch="amd64" -output "dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- bash ./ci/deploy-binaries.sh dist false
only:
- tags
upload_latest_artefacts:
stage: deploy
script:
- go get -t ./...
- go get github.com/mattn/go-isatty
- go get github.com/mitchellh/gox
- gox -os="linux windows darwin" -arch="amd64" -output "latest_dist/{{.OS}}_{{.Arch}}_{{.Dir}}"
- bash ./ci/deploy-binaries.sh latest_dist true
only:
- develop