Commit ade885c0 authored by 🕺 Winnie 🕺's avatar 🕺 Winnie 🕺

Cache gitbook version

parent d2d535a9
Pipeline #26117777 passed with stage
in 2 minutes and 2 seconds
......@@ -4,16 +4,16 @@ image: node:8.9
# add 'node_modules' to cache for speeding up builds
cache:
paths:
- .gitbook/
- node_modules/ # Node modules and dependencies
- generated-book/
before_script:
- npm install gitbook-cli # install gitbook
- export PATH="$PWD/node_modules/.bin/:$PATH"
- export GITBOOK_DIR="$PWD/.gitbook/" # allow caching of gitbook version
- npm install gitbook-cli # install gitbook
- gitbook fetch latest # fetch latest stable version
#- gitbook install # add any requested plugins in book.json
#- gitbook fetch pre # fetch latest pre-release version
#- gitbook fetch 2.6.7 # fetch specific version
test:
stage: test
......
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