Skip to content

Instantly share code, notes, and snippets.

@come-maiz
Last active August 31, 2016 04:43
Show Gist options
  • Save come-maiz/f813addd61fbdf2d0b11a289ce1f594f to your computer and use it in GitHub Desktop.
Save come-maiz/f813addd61fbdf2d0b11a289ce1f594f to your computer and use it in GitHub Desktop.
Heroku snap testing

Smoke tests for the Heroku CLI snap

(based on https://devcenter.heroku.com/articles/heroku-command-line)

First, build and install the CLI snap:

  1. sudo apt install git snapcraft
  2. git clone https://github.com/elopio/cli-1
  3. cd cli-1
  4. git checkout snapcraft
  5. snapcraft
  6. sudo snap install heroku*.snap

Print the help:

$ heroku help
$ heroku -h
$ heroku --help
$ heroku _
Usage: heroku COMMAND [--app APP] [command-specific-options]
[...]
  heroku update  # update heroku-cli

Print the version:

$ heroku version
$ heroku --version
$ heroku -v
heroku-cli/dev (linux-amd64) go1.6.2 ?

The following steps require an account in https://www.heroku.com/. The basic plan is free, and it should be more than enough for testing the snap.

$ heroku login
Enter your Heroku credentials.
Email: $USER_EMAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment