Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
Add circle.yml (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmiyake authored May 17, 2017
1 parent c70a656 commit 5712341
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2
executorType: docker
containerInfo:
- image: nmiyake/go:go-1.7.5-1.8.1-t35
cmd: ["/bin/bash"]
stages:
build:
parallel: 2
workDir: /go/src/github.com/palantir/tfjson
environment:
- PROJECT: pkg
- GET_GO_VERSION: |
case $CIRCLE_NODE_INDEX in
0)
echo "1.8"
;;
1)
echo "1.7"
;;
*)
echo "Unexpected node $CIRCLE_NODE_INDEX"
;;
esac
steps:
- type: checkout
- type: shell
name: "Set up /usr/local/go"
command: |
set -eu
rm /usr/local/go
ln -s "/usr/local/go-$(eval "$GET_GO_VERSION")" /usr/local/go
- type: shell
name: "Verify Go version"
command: go version
- type: shell
name: "Verify that package builds"
command: go build .

0 comments on commit 5712341

Please sign in to comment.