-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
24 lines (21 loc) · 1.02 KB
/
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
machine:
environment:
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
dependencies:
pre:
- go get -u github.com/ppg/rosgo/...
- go get -d -u github.com/weird-science-avc/gobot/...
post:
- rm -rf ~/.go_workspace/src/github.com/hybridgroup
- mkdir -p ~/.go_workspace/src/github.com/hybridgroup
- cp -R ~/.go_workspace/src/github.com/weird-science-avc/gobot ~/.go_workspace/src/github.com/hybridgroup
test:
pre:
- go tool vet -test ./nodes
override:
- go test ./nodes/...
- GOOS=linux GOARCH=arm GOARM=7 go build -a -v -o $CIRCLE_ARTIFACTS/drivetrain-arm7 ./nodes/drivetrain/...
- GOOS=linux GOARCH=amd64 go build -a -v -o $CIRCLE_ARTIFACTS/drivetrain-linux-amd64 ./nodes/drivetrain/...
- GOOS=linux GOARCH=386 go build -a -v -o $CIRCLE_ARTIFACTS/drivetrain-linux-386 ./nodes/drivetrain/...
# TODO(ppg): debug why this won't build on circleci :/
#- GOOS=darwin GOARCH=amd64 go build -a -v -o $CIRCLE_ARTIFACTS/drivetrain-darwin-amd64 ./nodes/drivetrain/...