diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 61357d69cc6b43e9d246b074596d7913ebffb234..5828d28b1a38884d72167cd58df2756555cb2fe7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
diff --git a/package.json b/package.json
index 1ee3bdc6dcf7d0c2f1e4d86f7c054abc1acb79b0..aa23f5e70289b1cd4a88b44580190b01e0f694bb 100644
--- a/package.json
+++ b/package.json
@@ -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",