Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Get Travis Working (#1)
Browse files Browse the repository at this point in the history
* glide: fix uber-license dep, devImports don't work
* glide: add golint and golang.org/x/tools so that travis can build it
* Makefile update uber-license bootstrapping; I don't think it was ever working for others than myself
* Add travis intergration
  • Loading branch information
jcorbin committed May 20, 2016
1 parent 0119497 commit 2e6cb1d
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: go
go:
- 1.5
- 1.6
- tip
env:
global:
- GO15VENDOREXPERIMENT=1
install: make install_ci
script: make test
cache:
directories:
- vendor
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ test: check-license lint
vendor: glide.lock
glide install

vendor/github.com/uber/uber-licence/package.json: vendor
.PHONY: install_ci
install_ci:
glide --version || go get -u -f github.com/Masterminds/glide
make vendor
glide install
go install ./vendor/github.com/golang/lint/golint

vendor/github.com/uber/uber-licence: vendor
[ -d vendor/github.com/uber/uber-licence ] || glide install

vendor/github.com/uber/uber-licence/node_modules: vendor/github.com/uber/uber-licence/package.json
vendor/github.com/uber/uber-licence/node_modules: vendor/github.com/uber/uber-licence
cd vendor/github.com/uber/uber-licence && npm install

.PHONY: check-license add-license
Expand Down
12 changes: 10 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ import:
- package: github.com/stretchr/testify
subpackages:
- assert
devImports:
- package: github.com/uber/uber-licence
- package: github.com/golang/lint
- package: golang.org/x/tools
subpackages:
- go/gcimporter15

0 comments on commit 2e6cb1d

Please sign in to comment.