2018-10-13 10:03:14 +00:00
|
|
|
image: node:alpine # Use latest version of Node.js on Alpine
|
2016-02-29 14:25:06 +00:00
|
|
|
|
2018-10-01 03:05:37 +00:00
|
|
|
test:
|
2018-09-26 11:20:21 +00:00
|
|
|
cache: # add cache to 'node_modules' for speeding up builds
|
|
|
|
paths:
|
|
|
|
- node_modules/ # Node modules and dependencies
|
2016-02-29 14:25:06 +00:00
|
|
|
|
2018-09-25 00:16:25 +00:00
|
|
|
script:
|
2018-10-26 07:19:15 +00:00
|
|
|
- npm install
|
|
|
|
- npm run build
|
2018-09-29 06:03:51 +00:00
|
|
|
|
2018-09-25 00:57:38 +00:00
|
|
|
only:
|
2018-09-26 11:20:21 +00:00
|
|
|
- master # this job will affect only the 'master' branch
|
2018-10-01 03:05:37 +00:00
|
|
|
|
|
|
|
|
2018-10-02 04:35:40 +00:00
|
|
|
# # Uncomment below (and comment/remove above) lines for gitlab pages
|
|
|
|
# image: node:latest # Use latest version of Node.js
|
2018-10-01 03:05:37 +00:00
|
|
|
# pages:
|
|
|
|
# cache: # add cache to 'node_modules' for speeding up builds
|
|
|
|
# paths:
|
|
|
|
# - node_modules/ # Node modules and dependencies
|
|
|
|
|
|
|
|
# script:
|
|
|
|
# - npm install -g snyk hexo-cli
|
|
|
|
# - npm install # install node modules
|
|
|
|
# - snyk auth $SNYK_TOKEN
|
|
|
|
# - snyk protect # Apply patches to node modules
|
|
|
|
# - snyk test # Check node modules for vulnerability
|
|
|
|
# - hexo deploy # deploy the site.
|
|
|
|
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - public # deploy to the 'public' folder.
|
|
|
|
|
|
|
|
# only:
|
|
|
|
# - master # this job will affect only the 'master' branch
|