Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: node:7.9.0 # change to match your node version
- cache:
- paths:
- - node_modules/
- before_script:
- - npm install
- test:
- stage: test
- # always include the tags: - dev filed in each stage.
- tags:
- - dev
- script:
- - CI=true npm test
- staging:
- stage: deploy
- # always include the tags: - dev filed in each stage.
- tags:
- - dev
- script:
- - CI=true npm run build
- - rm -rf public
- - mv build public
- artifacts:
- paths:
- - public # GitLab pages serve from a 'public' directory
- only:
- - master # run on master branch
Add Comment
Please, Sign In to add comment