sourcecred/scripts
William Chargin 3dda4ab35c
test: invoke `yarn backend` only once (#784)
Summary:
Lots of tests need the output of `yarn backend`. Before this commit,
they tended to create it themselves. This was slow and wasteful, and
also could in principle have race conditions (though in practice usually
tended not to).

This commit updates tests to respect a `SOURCECRED_BIN` environment
variable indicating the path to an existing directory of backend
applications.

Closes #765.

Test Plan:
Running `yarn test --full` passes.

Prepending `echo run >>/tmp/log &&` to the `backend` script in
`package.json` and running `yarn test --full` results in a log file
containing only one line, indicating that the script really is run only
once.

wchargin-branch: deduplicate-backend
2018-09-05 12:47:54 -07:00
..
build_static_site.sh test: invoke `yarn backend` only once (#784) 2018-09-05 12:47:54 -07:00
check-stopships.sh Permit STOPSHIPs in Markdown files (#573) 2018-07-31 10:58:29 -07:00
deploy.sh deploy.sh: depend on build_static_site.sh (#611) 2018-08-06 19:00:35 -07:00
ensure-flow.sh ensure-flow.sh: simplify, removing dep on GNU grep (#602) 2018-08-22 11:44:20 -07:00