AMD64
Go: 1.11.x
Git
.travis.yml
language: go
go: 1.11.x
install:
- go get -u github.com/FiloSottile/gvt
- make deps
script:
- make build
- make crossbuild
- make docker-build
addons:
artifacts:
paths:
- ./build/linux/amd64/vsphere-monitor
- ./build/darwin/amd64/vsphere-monitor
target_paths:
- travis-ci/vsphere-monitor/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
- travis-ci/vsphere-monitor/$(git describe --always --dirty --tags)
- travis-ci/vsphere-monitor/$TRAVIS_BRANCH
Build Config
{
"go": [
"1.11.x"
],
"os": [
"linux"
],
"dist": "trusty",
"sudo": false,
"addons": {
"artifacts": {
"paths": [
"./build/linux/amd64/vsphere-monitor",
"./build/darwin/amd64/vsphere-monitor"
],
"enabled": true,
"target_paths": [
"travis-ci/vsphere-monitor/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER",
"travis-ci/vsphere-monitor/$(git describe --always --dirty --tags)",
"travis-ci/vsphere-monitor/$TRAVIS_BRANCH"
]
}
},
"script": [
"make build",
"make crossbuild",
"make docker-build"
],
"install": [
"go get -u github.com/FiloSottile/gvt",
"make deps"
],
"language": "go"
}