Fixing running command in the linux build and other optimizations.
This commit is contained in:
parent
c9ae5b1ca8
commit
264ce6a147
|
@ -3,19 +3,29 @@ image: "golang:1-alpine"
|
||||||
before_script:
|
before_script:
|
||||||
# Disabling cgo to not install gcc
|
# Disabling cgo to not install gcc
|
||||||
- export CGO_ENABLED=0
|
- export CGO_ENABLED=0
|
||||||
|
- export GOARCH=amd64
|
||||||
|
|
||||||
build_linux_amd64:
|
build_linux_amd64:
|
||||||
script:
|
script:
|
||||||
- GOOS=linux GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
- export GOOS=linux
|
||||||
- ./magnetico-go-migrator --help
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
||||||
|
- ./magnetico-go-migrator-$GOOS-$GOARCH --help
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- magnetico-go-migrator
|
- magnetico-go-migrator-*-*
|
||||||
|
|
||||||
build_windows_amd64:
|
build_windows_amd64:
|
||||||
script:
|
script:
|
||||||
- GOOS=windows GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
- export GOOS=windows
|
||||||
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- magnetico-go-migrator-*-*
|
||||||
|
|
||||||
build_darwin_amd64:
|
build_darwin_amd64:
|
||||||
script:
|
script:
|
||||||
- GOOS=darwin GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
- export GOOS=darwin
|
||||||
|
- go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- magnetico-go-migrator-*-*
|
||||||
|
|
Reference in a new issue