Commit a14cbfb8 by Jun Matsushita

Fix link testing

parent 9e238674
......@@ -12,16 +12,18 @@
"bugs": {
"url": "https://code.iilab.org/openintegrity/openintegrity.org/issues"
},
"pre-push": [ "test" ],
"pre-push": [
"test"
],
"scripts": {
"clean": "rm -rf $CONFIG_REPO && rm _branch.yml",
"build": "grunt build",
"test": "true || npm run build && echo \"Do some validations...\" && npm run test-links",
"test": "npm run build && echo \"Do some validations...\" && npm run test-links",
"test-links": "pm2 -s stop hs || true && pm2 -s delete hs || true && pm2 -f start `which hs` -- -p 8080 _site && blc -s -r --input http://127.0.0.1:8080/$CONFIG_REPO | tee /dev/tty | grep -z '. 0 broken\\.[[:space:]]\\+Elapsed'",
"ci:build": "mkdir -p /tmp/$npm_package_name && rm -rf /tmp/$npm_package_name/$npm_package_version && cp -R . /tmp/$npm_package_name/$npm_package_version && cd /tmp/$npm_package_name/$npm_package_version && git init && git add . && git commit -m \"temp\" && gitlab-runner exec docker build",
"deploy": "npm run deploy-push",
"deploy-push": "bash deploy.sh",
"prebuild": "if [ $TRAVIS_PULL_REQUEST -eq 'true'] ; then TRAVIS_BRANCH=$TRAVIS_COMMIT ; fi && echo \"github:\\n current_branch: $TRAVIS_BRANCH\" > _branch.yml\n",
"prebuild": "if [ \"$TRAVIS_PULL_REQUEST\" == \"true\" ] ; then TRAVIS_BRANCH=$TRAVIS_COMMIT ; fi && echo \"github:\\n current_branch: $TRAVIS_BRANCH\" > _branch.yml\n",
"postbuild": "rm _branch.yml"
},
"homepage": "https://github.com/contentascode/docsmith-init#readme",
......@@ -65,6 +67,7 @@
"nunjucks": "^2.4.2"
},
"devDependencies": {
"broken-link-checker": "github:iilab/broken-link-checker",
"git-prepush-hook": "^1.0.2",
"grunt": "^1.0.1",
"grunt-check-pages": "^0.10.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment