1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #
- # Build config for ThirdMartini go-builder
- #
- gobuild.version.required: 1.0
- gobuild.work.dir: build
- properties:
- version: git rev-parse --short=12 HEAD
- jobs:
- #
- # Format source code
- format:
- - name: Format source code
- type: golang
- source: git.thirdmartini.com/thirdmartini/vessel/...
- options:
- flags:
- #
- # Run some tests
- test:
- - name: Running unit tests
- type: golang
- source: git.thirdmartini.com/thirdmartini/vessel/...
- options:
- flags:
- #
- # Build binary for different architectures
- build:
- - name: Build Binaries
- type: golang
- source: git.thirdmartini.com/thirdmartini/vessel/cmd/vesselcmd
- targets:
- - artifact: build/vesselcmd
- - artifact: build/vesselcmd.arm7.linux
- arch: arm
- os: linux
- model: 7
- - artifact: build/vesselcmd.arm64.linux
- arch: arm64
- os: linux
- deploy:
- - name: Copy native binaries localy
- type: copy
- artifact: vesselcmd
- targets:
- - artifact: build/vesselcmd
- options:
- source: build/vesselcmd
- destination: ~/bin/vesselcmd
|