Merge pull request #3339 from babel/shell-scripts
Know how to write good shell scripts
This commit is contained in:
commit
612e11e615
3
Makefile
3
Makefile
@ -38,13 +38,12 @@ test-cov: clean
|
||||
# rebuild with test
|
||||
rm -rf packages/*/lib
|
||||
BABEL_ENV=test; ./node_modules/.bin/gulp build
|
||||
|
||||
./scripts/test-cov.sh
|
||||
|
||||
test-ci:
|
||||
make lint
|
||||
NODE_ENV=test make bootstrap
|
||||
node scripts/run-flow-check.js
|
||||
if ./node_modules/.bin/semver `npm --version` -r ">=3.3.0"; then ./node_modules/.bin/flow check; fi
|
||||
./scripts/test-cov.sh
|
||||
cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
|
||||
|
||||
|
||||
@ -1,15 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var binVersionCheck = require("bin-version-check");
|
||||
var child = require("child_process");
|
||||
|
||||
// run in npm 3+ only
|
||||
binVersionCheck("npm", ">=3.3.0", function (err) {
|
||||
if (!err) {
|
||||
console.log("Running ./node_modules/.bin/flow check");
|
||||
var cmd = child.spawn("./node_modules/.bin/flow", ["check"], { stdio: "inherit" });
|
||||
cmd.on("exit", function(code) {
|
||||
process.exit(code);
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user