Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from ubclaunchpad/139-dep-distribution-n-docs
CLI distribution, dep, and README update
- Loading branch information
Showing
10 changed files
with
331 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
# This script cross-compiles binaries for various platforms | ||
|
||
# Download our release binary builder | ||
go get -u github.com/mitchellh/gox | ||
|
||
# Specify platforms and release version | ||
PLATFORMS="linux/amd64 linux/386 darwin/386 windows/amd64 windows/386" | ||
RELEASE=$(git describe --tags) | ||
echo "Building release $RELEASE" | ||
|
||
# Build Inertia Go binaries for specified platforms | ||
gox -output="cumulus.$(git describe --tags).{{.OS}}.{{.Arch}}" \ | ||
-osarch="$PLATFORMS" \ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
language: go | ||
sudo: false | ||
go: | ||
- 1.7 | ||
- '1.10' | ||
|
||
before_install: | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/golang/dep/cmd/dep | ||
|
||
install: | ||
- make install-glide | ||
- make deps | ||
- dep ensure | ||
|
||
script: | ||
- $HOME/gopath/bin/goveralls -service=travis-ci | ||
- go test -coverprofile=coverage.out ./... | ||
- goveralls -coverprofile=coverage.out -service=travis-ci |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Gopkg.toml example | ||
# | ||
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md | ||
# for detailed Gopkg.toml documentation. | ||
# | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project" | ||
# version = "1.0.0" | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project2" | ||
# branch = "dev" | ||
# source = "github.com/myfork/project2" | ||
# | ||
# [[override]] | ||
# name = "github.com/x/y" | ||
# version = "2.4.0" | ||
# | ||
# [prune] | ||
# non-go = false | ||
# go-tests = true | ||
# unused-packages = true | ||
|
||
|
||
[[constraint]] | ||
name = "github.com/google/uuid" | ||
version = "0.2.0" | ||
|
||
[[constraint]] | ||
name = "github.com/spf13/viper" | ||
version = "1.0.0" | ||
|
||
[[constraint]] | ||
name = "github.com/stretchr/testify" | ||
version = "~1.1.4" | ||
|
||
[[constraint]] | ||
name = "gopkg.in/kyokomi/emoji.v1" | ||
version = "1.5.0" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
.PHONY: test deps clean install_glide | ||
|
||
PACKAGES = `go list ./... | grep -v vendor/` | ||
|
||
all: cumulus | ||
|
||
cumulus: | ||
go build | ||
|
||
test: | ||
go test $(PACKAGES) --cover | ||
go test ./... --cover | ||
|
||
run-console: cumulus | ||
./cumulus run -c | ||
|
||
deps: | ||
glide install | ||
go get -u github.com/golang/dep/cmd/dep | ||
dep ensure | ||
|
||
clean: cumulus | ||
rm -f cumulus blockchain.json user.json logfile | ||
|
||
install-glide: | ||
sh scripts/install_glide.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.