Commit Graph

45 Commits

Author SHA1 Message Date
Erik Arvidsson
fb4c8624a0 JS integration tests for samples/js/{counter,fs} (#1951)
This adds some a basic integration tests for sample/js/{counter,fs}.

It work pretty much like this:

- Run `npm install`
- Do setup (good place to initialize the database) (optional).
- Start a http store from go.
- Run `node . <args...>`. The IntegrationTestSuite has convenience
  methods to get the spec.
- Do teardown, which is a good time to check the output and the current state of the db (optional).

Towards #1888
2016-07-07 14:00:32 -07:00
Erik Arvidsson
c0bd2c90d4 More tweaks to tools/run-all-js-tests.py (#1974)
* Update Splore build.py

* path

* Setup the bin symlinks in preinstall

* Link entire node_modules instead
2016-07-06 13:44:11 -07:00
Aaron Boodman
1d752e3101 Update license: Noms will be copyright Attic Labs. (#1976) 2016-07-05 22:07:42 -07:00
Erik Arvidsson
983fa59090 Samples js shared 2 (#1973)
* Revert "Revert "Share node_modules for samples/js" (#1967)"

This reverts commit 7bb1623e99.

* Add parent directory to the PATH

* Change run-all-js-tests to run samples/js before samples/js/**

* Fix a temporary comment
2016-07-05 16:25:21 -07:00
Dan Willhite
095d49fa84 New error handling. 2016-06-22 12:11:31 -07:00
Aaron Boodman
155a388c64 Fix build break in tools/ 2016-06-05 02:46:02 -07:00
Erik Arvidsson
f20c6465b6 Flow comment first (#1724) 2016-06-03 14:35:21 -07:00
Erik Arvidsson
d6537c74c5 Update clients to use latest eslint (#1699)
And fix new errors that were found.

This also adds tools/run-all-js-tests.py which runs `npm install`
and `npm test` in all directories containing a package.json file.
2016-06-02 09:41:32 -07:00
Aaron Boodman
40d485bd03 Licensify everything 2016-05-30 14:32:28 -07:00
Aaron Boodman
032a3daee5 Add tools/licensify.py 2016-05-30 14:32:22 -07:00
Ben Kalman
6187e76325 Replace stretchr/testify with attic-labs/testify (#1637)
This removes the httptest flag in usage for every command.
2016-05-25 13:13:55 -07:00
Ben Kalman
5b8462f3d6 Update non-Flickr clients to noms v37.0.0 (#1606)
Major changes:
* async newList() --> sync new List()
* rename ref --> hash
* better types
* walk() return type changed
2016-05-23 17:46:41 -07:00
Chris Masone
8eba180782 Revert "renaming datastore to database (#1374) - fixes bug #1290"
This reverts commit d77902b323.
2016-05-02 09:01:44 -07:00
Mike Gray
d77902b323 renaming datastore to database (#1374) - fixes bug #1290
* datastore -> database
* fixing bug 1290, renaming datastore to database
2016-05-01 22:02:16 -04:00
Ben Kalman
d8de7c7b1a Add tool to update npm version of attic modules (#1333) 2016-04-27 16:28:35 -07:00
Erik Arvidsson
3cb7f804fd Auto deply JS SDK 2016-04-11 18:14:40 -07:00
Erik Arvidsson
3b76423cd0 Auto deploy JS (#1215)
Trying to use the version in package.json again

Issue #1200
2016-04-11 18:05:00 -07:00
Erik Arvidsson
fd10c789d6 Auto deploy JS SDK (#1214)
Use rev-list instead?

Issue #1200
2016-04-11 17:36:31 -07:00
Erik Arvidsson
9748e720ae Aut deploy JS SDK (#1211)
npm publish if the version has changed

Issue #1200
2016-04-11 17:06:59 -07:00
Erik Arvidsson
3758d0e6d9 Auto deploy JS SDK (#1210)
When the version in js/package.json is updated, publish a new version.

This does not yet do the actual publish. If this works it will be
updated in a later commit.

Issue #1200
2016-04-11 16:58:59 -07:00
Erik Arvidsson
a6cd5b9838 Revert "Auto deploy Noms JS SDK (#1208)"
This reverts commit af72024d35.

The computed version number is not good because `git log` does not
contain the full history so the number of rows is wrong.
2016-04-11 16:37:48 -07:00
Erik Arvidsson
af72024d35 Auto deploy Noms JS SDK (#1208)
This computes a new version based on the number of changes to the
js directory.

This does not yet actually publish the new version. I need to see how
Travis behaves before I can do that.

Towards #1200
2016-04-11 16:28:32 -07:00
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