forked from palantir/tfjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
37 lines (37 loc) · 926 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 .