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 ...@@ -2,9 +2,10 @@ image: node:6.2
cache: cache:
paths: paths:
- node_modules/ - /cache
before_script: before_script:
- npm config set cache /cache
- npm install --silent - npm install --silent
- node_modules/.bin/typings install - node_modules/.bin/typings install
...@@ -13,3 +14,15 @@ run_tests: ...@@ -13,3 +14,15 @@ run_tests:
- npm test - npm test
tags: tags:
- node - node
pages:
script:
- npm run doc-api
- cp -r doc public
tags:
- node
artifacts:
paths:
- public
only:
- master
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
"postinstall": "typings install", "postinstall": "typings install",
"start": "node index", "start": "node index",
"pretest": "tslint -s node_modules/tslint-stylish -t stylish src/**/*.ts test/**/*.ts", "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": { "repository": {
"type": "git", "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