Skip to content

Commit

Permalink
Enable Travis CI support for Go
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjarvo committed Apr 1, 2018
1 parent 8d2e19a commit 3f12e2e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: go

go:
- "1.9"
- "1.10.x"
- master
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ DEFAULT: build

PROGVER = $(shell grep 'const progversion = ' main.go | awk '{print $$4}' | sed -e 's/\"//g')

build:
go build -o ${GOPATH}/bin/trickster -v github.com/comcast/trickster

deps:
go get

build: deps
go build -o ${GOPATH}/bin/trickster

helm-local:
kubectl config use-context minikube --namespace=trickster
kubectl scale --replicas=0 deployment/dev-trickster -n trickster
Expand All @@ -27,4 +30,4 @@ docker:
clean:
rm ${GOPATH}/bin/trickster

.PHONY: build helm-local kube-local docker docker-release clean
.PHONY: build helm-local kube-local docker docker-release clean deps

0 comments on commit 3f12e2e

Please sign in to comment.