Canonical path is actually otremblay.com/jkl

Also we use go dep instead of godeps
This commit is contained in:
Olivier Tremblay 2017-10-05 19:18:06 -04:00
parent edc5120921
commit 1458b63287
No known key found for this signature in database
GPG key ID: D1C73ACB855E3A6D
8 changed files with 110 additions and 42 deletions

37
.circleci/config.yml Normal file
View file

@ -0,0 +1,37 @@
# Golang CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-go/ for more details
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.8
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/postgres:9.4
#### TEMPLATE_NOTE: go expects specific checkout path representing url
#### expecting it in the form of
#### /go/src/github.com/circleci/go-tool
#### /go/src/bitbucket.org/circleci/go-tool
working_directory: /go/src/otremblay.com/jkl
steps:
- checkout
# specify any bash command here prefixed with `run: `
- run: go get github.com/golang/dep/cmd/dep
- run: go vet ./...
- run: dep ensure
- run:
command:
go test $(go list ./... | grep -v /vendor/)
- run: go install $(go list ./... | grep -v /vendor/)
- run:
command: |
cp /go/bin/jkl /tmp/jkl
- store_artifacts:
path: /tmp/jkl
destination: jkl