master Use jupiter-brain's ClientProvider for automatic reauth (#13

Push event #22.1 passed

  • Ran for
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

deploy:
  provider: script
  script: bin/docker-push
  # we don't need this for docker, but the artifacts push does
  skip_cleanup: true
  on:
    # push all non-PR builds to Docker Hub
    all_branches: true
    condition: "$TRAVIS_PULL_REQUEST == false"

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",
  "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"
      ]
    }
  },
  "deploy": [
    {
      "on": {
        "condition": "$TRAVIS_PULL_REQUEST == false",
        "all_branches": true
      },
      "script": "bin/docker-push",
      "provider": "script",
      "skip_cleanup": true
    }
  ],
  "script": [
    "make build",
    "make crossbuild",
    "make docker-build"
  ],
  "install": [
    "go get -u github.com/FiloSottile/gvt",
    "make deps"
  ],
  "language": "go"
}