master Add (un)installation scripts

Making the installation a bit more repeatable with a simple script.

Jeroen Op 't Eynde avatar Jeroen Op 't Eynde

Push event #9.1 errored

  • Ran for
AMD64
Go: 1.11.x
Git
language: go
go: "1.11.x"
services:
  - docker
before_install:
  - curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep
  - chmod +x $GOPATH/bin/dep
install: true # don't `go get` a bunch of junk, we'll get it with dep
script:
  - dep ensure -vendor-only
  - bin/docker-build
deploy:
  provider: script
  script: bin/docker-push
  on:
    repo: travis-ci/trvs-operator
    all_branches: true
notifications:
  email: false
Build Config
{
  "go": [
    "1.11.x"
  ],
  "os": [
    "linux"
  ],
  "deploy": [
    {
      "on": {
        "repo": "travis-ci/trvs-operator",
        "all_branches": true
      },
      "script": "bin/docker-push",
      "provider": "script"
    }
  ],
  "script": [
    "dep ensure -vendor-only",
    "bin/docker-build"
  ],
  "install": [
    "true"
  ],
  "language": "go",
  "services": [
    "docker"
  ],
  "notifications": {
    "email": {
      "enabled": false
    }
  },
  "before_install": [
    "curl -L -s https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep",
    "chmod +x $GOPATH/bin/dep"
  ]
}