-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configured Go module, updated CI configs
- Loading branch information
1 parent
55a0b32
commit 17c1cca
Showing
60 changed files
with
136 additions
and
6,813 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
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,21 +1,61 @@ | ||
language: go | ||
|
||
go: | ||
- '1.10' | ||
- '1.11' | ||
- tip | ||
|
||
git: | ||
depth: 3 | ||
|
||
os: | ||
- osx | ||
- linux | ||
|
||
env: | ||
global: | ||
- GOLINT_BIN="$GOPATH/bin/golint" | ||
- GO111MODULE="on" | ||
|
||
## Cache Golint installation. | ||
cache: | ||
directories: | ||
## Preserve golint executable. | ||
- $GOLINT_BIN | ||
## Preserve Go module cache. | ||
- $GOPATH/pkg/mod/cache | ||
|
||
## Mark Go version 'tip' as an optional. | ||
matrix: | ||
allow_failures: | ||
- go: 'tip' | ||
fast_finish: true | ||
|
||
## Install dependencies and code review tools. | ||
before_install: | ||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh | ||
- go get -u golang.org/x/lint/golint | ||
## Install Golint, if no installation cache exists. | ||
- if [ ! -e "$GOLINT_BIN" ]; then go get -u golang.org/x/lint/golint; fi | ||
|
||
## Install clipboard program if necessary. | ||
- | | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
sudo apt-get update; | ||
sudo apt-get install xclip; | ||
fi | ||
install: | ||
## Install all dependencies. | ||
- make get | ||
- | | ||
if [ "$TRAVIS_OS_NAME" == "linux" ]; then | ||
export DISPLAY=:99.0 | ||
sh -e /etc/init.d/xvfb start # imitate an display on Linux | ||
fi | ||
install: dep ensure | ||
## List diagonstic information before running tests. | ||
before_script: | ||
- go env | ||
|
||
script: | ||
- make review-race | ||
- make build | ||
script: make review-race-v | ||
|
||
after_script: | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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,6 @@ | ||
module github.com/steven-xie/dgen | ||
|
||
require ( | ||
github.com/jessevdk/go-flags v1.4.0 | ||
github.com/steven-xie/glip v1.1.0 | ||
) |
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,6 @@ | ||
github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= | ||
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= | ||
github.com/steven-xie/glip v1.0.0 h1:YeZcV2bgnvngDeLi62Ck7exi//zz0PmDEpHvS7uYhT8= | ||
github.com/steven-xie/glip v1.0.0/go.mod h1:7//Wcz3pRKb1c7mJpki9VVWiVM0GlqC3oi369FqXZY8= | ||
github.com/steven-xie/glip v1.1.0 h1:aB7PWAs+5tq4rYuTfUeWd/4Ke6wSDMfWQ2BwRx5FNTc= | ||
github.com/steven-xie/glip v1.1.0/go.mod h1:7//Wcz3pRKb1c7mJpki9VVWiVM0GlqC3oi369FqXZY8= |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.