Split the binary build (#985)

As we can not compile darwin binaries with static flags I have split the
build process into different make tasks. Now we get static linked
binaries especially for linux so that it also can run on older versions
of CenOS and so on.

Signed-off-by: Thomas Boerger <thomas@webhippie.de>
This commit is contained in:
Thomas Boerger 2017-03-07 14:49:24 +01:00 committed by Lunny Xiao
parent 288226e13c
commit 7ed00b6e8d
3 changed files with 43 additions and 15 deletions

View file

@ -11,8 +11,7 @@ pipeline:
image: webhippie/golang:edge
pull: true
environment:
CGO_ENABLED: 1
TAGS: sqlite bindata
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- apk -U add openssh-client
@ -29,8 +28,7 @@ pipeline:
image: webhippie/golang:edge
pull: true
environment:
CGO_ENABLED: 1
TAGS: sqlite bindata
TAGS: bindata
GOPATH: /srv/app
commands:
- make test-mysql
@ -41,20 +39,31 @@ pipeline:
image: webhippie/golang:edge
pull: true
environment:
CGO_ENABLED: 1
TAGS: sqlite bindata
TAGS: bindata
GOPATH: /srv/app
commands:
- make test-pgsql
when:
event: [ push, tag, pull_request ]
updater:
static:
image: karalabe/xgo-latest:latest
pull: true
environment:
CGO_ENABLED: 1
TAGS: sqlite bindata
TAGS: bindata
FLAVOR: static
GOPATH: /srv/app
commands:
- make release
when:
event: [ push, tag, pull_request ]
sqlite:
image: karalabe/xgo-latest:latest
pull: true
environment:
TAGS: bindata sqlite
FLAVOR: sqlite
GOPATH: /srv/app
commands:
- make release