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

Commit

Permalink
Issue #93: build target binaries in cirlce; reproduces local build;
Browse files Browse the repository at this point in the history
  • Loading branch information
bpicode committed Oct 30, 2017
1 parent a178de6 commit 3db1f0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ sysinfo:
@echo ">> SYSTEM INFORMATION"
@echo -n " PLATFORM: $(shell uname -a)"
@$(call ok)
@echo -n " PWD: : $(shell pwd)"
@$(call ok)
@echo -n " GO : $(shell go version)"
@$(call ok)
@echo -n " BUILDFLAGS: $(BUILDFLAGS)"
Expand Down
6 changes: 6 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ machine:
environment:
GODIST: "go1.9.2.linux-amd64.tar.gz"
IMPORT_PATH: "github.com/$CIRCLE_PROJECT_REPONAME"
GOROOT: /usr/local/go

post:
- mkdir -p download
- test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf download/$GODIST

dependencies:
post:
- GOPATH=/home/ubuntu/.go_project go env
- GOPATH=/home/ubuntu/.go_project make clean sysinfo dist_all

0 comments on commit 3db1f0a

Please sign in to comment.