hh/check-cli-flags cmd: check if required flags are set

Using c.String("…") == "" instead of !c.IsSet("…") since c.IsSet only
checks if the flag is passed on the command line, it doesn't check if
it's set in env vars.

Sarah Hodne avatar Sarah Hodne

Push event #72.1 passed

  • Ran for
AMD64
no language set
Git
The .travis.yml file used for this job is not available
Build Config
{
  "go": "1.7.5",
  "env": {
    "global": [
      "TRAVIS_COMMIT_SHORT=\"${TRAVIS_COMMIT:0:7}\"",
      "GOBUILDFLAGS=\"-x\""
    ]
  },
  "sudo": false,
  "addons": {
    "artifacts": {
      "paths": [
        "./build/linux/amd64/collectd-vsphere",
        "./build/darwin/amd64/collectd-vsphere"
      ],
      "target_paths": [
        "travis-ci/collectd-vsphere/$TRAVIS_BRANCH",
        "travis-ci/collectd-vsphere/$TRAVIS_COMMIT",
        "travis-ci/collectd-vsphere/$TRAVIS_COMMIT_SHORT"
      ]
    }
  },
  "script": [
    "make test",
    "make copyright",
    "git diff --exit-code",
    "git diff --cached --exit-code",
    "make crossbuild"
  ],
  "install": [
    "make prereqs",
    "make deps"
  ],
  "language": "go",
  "after_success": [
    "bash <(curl -s https://codecov.io/bash)"
  ]
}