Commit Graph

10 Commits

Author SHA1 Message Date
Chris Masone
b282335aaa Python test cleanup 2015-12-15 14:45:12 -08:00
Chris Masone
51bcb98784 Add noms.copy.Peers()
As I was working on making deployment files get staged by Go/Python,
another pattern emerged. It seems like it will be not-uncommon to want
to stage all the files in the directory your script is in over to the
staging directory the system made for you. So, provide a helper to do
that.
2015-12-15 13:38:50 -08:00
Chris Masone
a47edc8431 Tools cleanup
Add a python test, clean up some error messages, and trim
env vars that don't need to be passed to build/staging scripts.
2015-12-15 11:18:00 -08:00
Chris Masone
6e316d9975 Move build scripts to python
Finding and running build scripts remains in Go
(tools/run_all_build.go and supporting libs), but the build scripts
themselves are in python now.  This is because Go doesn't have much
support for copying files and directories around, which is kind of the
primary focus of build and packaging scripts.

Towards issue 677
2015-12-11 14:46:16 -08:00
Chris Masone
2a5747bd19 Preserve environment when running subprocesses.
Trying to whitelist needed env vars is just going to be a maintenance
headache, so don't do it.
2015-12-09 10:51:17 -08:00
Chris Masone
2fd0d57c16 Correctly add GOROOT to empty subprocess environments
The way I was forcing GOROOT wound up clearing the execution environment
of subprocesses when the caller intended to simply re-use the current
execution environment. This path correctly adds GOROOT in all cases.
2015-12-05 16:38:41 -08:00
Chris Masone
cd77f4ad37 Pass GOROOT in subprocess environment
Apparently, Travis runs a Go binary that was built with GOROOT=/usr/local/go,
but sets GOROOT to some other path in its execution environment. Tolerate this
by _always_ grabbing the current binary's GOROOT and setting it in the
execution environment used by subprocesses.
2015-12-04 11:23:15 -08:00
Chris Masone
86cc69faf2 Speculative fix for serial_test.go on Travis
This test already worked fine locally, but Travis seems to be different.
2015-12-04 10:59:05 -08:00
Chris Masone
426487a576 Fix up bad patch split
There's a subsequent patch I split out that I messed up with a bit.
2015-12-04 10:24:47 -08:00
Chris Masone
8180c41bf0 Build scripts/tools written in Go
This patch introduces tools/run_all_build.go, a tool that looks for
files called build.go in our source tree and executes them using
'go run'. Currently, they're run in serial.

Also, some node projects are tweaked to make it clear that 'go run build.go'
is the supported mechanism for installing deps and building code.
2015-12-04 10:18:23 -08:00