mirror of
https://github.com/tests-always-included/mo.git
synced 2024-12-18 16:27:52 +00:00
Adding script to run against official specs
This commit is contained in:
parent
3aa5c462f8
commit
08576fca7b
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@ tests/*.diff
|
|||||||
spec/
|
spec/
|
||||||
spec-runner/
|
spec-runner/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
package.json
|
||||||
|
package-lock.json
|
||||||
|
10
package.json
10
package.json
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"dependencies": {
|
|
||||||
"async": "*"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"clean": "rm -rf package-lock.json node_modules/ spec/",
|
|
||||||
"install-tests": "npm install; git clone https://github.com/mustache/spec.git spec",
|
|
||||||
"test": "node run-spec.js spec/specs/*.json"
|
|
||||||
}
|
|
||||||
}
|
|
20
run-spec
Executable file
20
run-spec
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Create a package.json so the dependency package is installed in the local
|
||||||
|
# directory
|
||||||
|
echo '{"private":true, "dependencies":{"async": "*"}}' > package.json
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# Install or update the specs
|
||||||
|
if [[ ! -d spec ]]; then
|
||||||
|
git clone https://github.com/mustache/spec.git spec
|
||||||
|
else
|
||||||
|
(
|
||||||
|
cd spec;
|
||||||
|
git pull
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Actually run the specs
|
||||||
|
node run-spec.js spec/specs/*.json
|
||||||
|
|
Loading…
Reference in New Issue
Block a user