Last build was aborted because of following reason: GoBuilder is unable to build private repositories
Properties

Last built 7 months ago using go version go1.7 linux/amd64 and 90 seconds of time

Downloads
Filename
File Size
 
cli_master_darwin-386.zip
2.6MiB
cli_master_darwin-amd64.zip
2.7MiB
cli_master_linux-386.zip
2.6MiB
cli_master_linux-amd64.zip
2.8MiB
cli_master_linux-arm.zip
2.5MiB
Project-Readme for this version

WeDeploy CLI tool Build Status Windows Build status Coverage Status codebeat badge Go Report Card GoDoc

Install this tool with

curl https://raw.githubusercontent.com/wedeploy/cli/master/install.sh -s | bash

or download from our stable release channel.

To update this tool, just run we update.

Dependencies

The following external soft dependencies are necessary to correctly run some commands: * docker * git

The availability of dependencies are tested just before its immediate use. If a required dependency is not found, an useful error message is printed and the calling process is terminated with an error code.

Contributing

You can get the latest CLI source code with go get -u github.com/wedeploy/cli

Important: To use the locked dependencies you should install glide and then run glide install first. go list ./... lists vendor/ dependencies, so you can use go list ./... | grep -v /vendor/ (or glide nv) to list the subpackages without the vendors. This is necessary for a few cases, such as testing all code: go test ./... becomes go test $(go list ./... | grep -v /vendor/).

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Integration tests should be written as well.

The master branch of this repository on GitHub is protected: * force-push is disabled * tests MUST pass on Travis before merging changes to master * branches MUST be up to date with master before merging

Keep your commits neat. Try to always rebase your changes before publishing them.

goreportcard can be used online or locally to detect defects and static analysis results from tools such as go vet, go lint, gocyclo, and more. Run errcheck to fix ignored error returns.

Using go test and go cover are essential to make sure your code is covered with unit tests.

Some commands and aliases you might find useful for development / testing:

  • Generating test coverage for the current directory: alias gotest='go test -coverprofile=coverage.out && go tool cover -html coverage.out -o coverage.html'
  • Running code without building: alias i="go run $HOME/projects/gocode/src/github.com/wedeploy/cli/main.go $1" (i: development code, we: production binary)
  • Opening coverage report: alias goreport="open coverage.html"
  • alias golintt='test -z "$(golint ./... | grep -v "^vendor" | tee /dev/stderr)"'
  • alias govet='go vet $(go list ./... | grep -v /vendor/)'