2019-06-06 06:59:33 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
2019-06-05 23:50:47 +02:00
|
|
|
|
2019-06-06 06:59:33 +02:00
|
|
|
steps:
|
|
|
|
- name: fetch
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- git fetch --tags
|
2019-06-05 23:50:47 +02:00
|
|
|
|
2019-06-06 06:59:33 +02:00
|
|
|
- name: buildci
|
|
|
|
image: golang
|
|
|
|
commands:
|
2019-06-06 07:14:09 +02:00
|
|
|
- apt-get update && apt-get install musl -y --no-install-recommends musl musl-dev musl-tools
|
2019-06-06 06:59:33 +02:00
|
|
|
- go get ./...
|
|
|
|
- go vet ./...
|
2019-06-06 07:22:11 +02:00
|
|
|
- build/build-gcc.sh
|
2019-06-06 07:11:33 +02:00
|
|
|
- build/build-musl.sh
|
2019-06-06 07:22:11 +02:00
|
|
|
- go test -cover ./...
|
2019-06-06 06:59:33 +02:00
|
|
|
when:
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
- name: buildrelease
|
|
|
|
image: golang
|
|
|
|
commands:
|
2019-06-06 07:22:11 +02:00
|
|
|
- apt-get update && apt-get install musl -y --no-install-recommends musl musl-dev musl-tools
|
2019-06-06 06:59:33 +02:00
|
|
|
- go get ./...
|
2019-06-06 07:22:11 +02:00
|
|
|
- build/build-gcc.sh
|
2019-06-06 06:59:33 +02:00
|
|
|
- build/build-musl.sh
|
|
|
|
when:
|
|
|
|
event: tag
|