Commit Graph

23 Commits

Author SHA1 Message Date
Aaron Boodman
4fe859848a Update roll.py to filter out sub-vendored deps 2016-02-11 17:02:39 -08:00
Aaron Boodman
cff0de3696 non-vendor changes 2016-02-08 23:15:09 -08:00
Aaron Boodman
c0c00b5259 Argh, submodules incompatible with CodePipeline. Vendor manually instead. 2016-02-07 21:16:31 -08:00
Chris Masone
206c3eb981 Build env vars should be set by tools in attic
Stop setting NOMS_SERVER in tools/run_all_build.go; it should be
set by various tools in the attic repo.
2016-02-01 15:55:01 -08:00
Benjamin Kalman
ce7a3285c8 Make GlobCopier support nested paths. 2016-01-26 10:28:30 -08:00
Benjamin Kalman
41cd0711f4 Add GlobCopier. 2016-01-25 18:16:35 -08:00
Benjamin Kalman
071c89f77d Make runner.Serial ignore file not found errors. 2016-01-25 17:28:28 -08:00
Aaron Boodman
37fcdf8b2c runner: add support for custom env variables
This is needed to build attic ui.
2016-01-19 15:41:16 -08:00
Chris Masone
5c89d91b5d Add RunInDir()
Another helper function to run a command in a given directory,
but without panicing on failure.
2015-12-23 15:47:21 -08:00
Chris Masone
703ed765b2 Add ForceRunInDir()
This helper allows the caller to run a command in a given directory,
and panic on failure.
2015-12-21 15:45:24 -08:00
Chris Masone
4e38862186 file.MyDir() must return directory of caller
It was returning the directory in which the library code lives.
Whoops.
2015-12-21 13:50:02 -08:00
Chris Masone
b8086ef6d4 Allow panics to terminate tests in tools/file_test.go 2015-12-21 13:31:54 -08:00
Chris Masone
6cb6d3769a Add some golang file manipulation utility functions
Some dead-simple file manipulation functions.
2015-12-21 12:59:55 -08:00
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