Commit 5a85ab96 authored by Eduardo L. Buratti's avatar Eduardo L. Buratti

Add a task to build static documentation page (for GitLab Pages)

parent f9ead21a
Pipeline #6627 failed with stage
in 46 seconds
......@@ -2,9 +2,10 @@ image: node:6.2
cache:
paths:
- node_modules/
- /cache
before_script:
- npm config set cache /cache
- npm install --silent
- node_modules/.bin/typings install
......@@ -13,3 +14,15 @@ run_tests:
- npm test
tags:
- node
pages:
script:
- npm run doc-api
- cp -r doc public
tags:
- node
artifacts:
paths:
- public
only:
- master
......@@ -7,7 +7,9 @@
"postinstall": "typings install",
"start": "node index",
"pretest": "tslint -s node_modules/tslint-stylish -t stylish src/**/*.ts test/**/*.ts",
"test": "istanbul cover -x \"**/*.spec.ts\" -e .ts _mocha"
"test": "istanbul cover -x \"**/*.spec.ts\" -e .ts _mocha",
"show-coverage": "xdg-open coverage/lcov-report/index.html",
"doc-api": "raml2html -i specs/blendb-api-v1.raml -o doc/api-v1-reference.html"
},
"repository": {
"type": "git",
......
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 to comment