SHARE
TWEET

Untitled

a guest Nov 14th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image: node:7.9.0 # change to match your node version
  2.  
  3. cache:
  4.   paths:
  5.     - node_modules/
  6.  
  7. before_script:
  8.   - npm install
  9.  
  10. test:
  11.   stage: test
  12.   # always include the tags: - dev filed in each stage.
  13.   tags:
  14.     - dev
  15.   script:
  16.     - CI=true npm test
  17.  
  18. staging:
  19.   stage: deploy
  20.   # always include the tags: - dev filed in each stage.
  21.   tags:
  22.     - dev
  23.   script:
  24.     - CI=true npm run build
  25.     - rm -rf public
  26.     - mv build public
  27.   artifacts:
  28.     paths:
  29.       - public # GitLab pages serve from a 'public' directory
  30.   only:
  31.     - master # run on master branch
RAW Paste Data
Top