Skip to content

Instantly share code, notes, and snippets.

@avatsaev
Created January 25, 2018 10:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avatsaev/0845caf3ec6f84501ef75412774d5ae3 to your computer and use it in GitHub Desktop.
Save avatsaev/0845caf3ec6f84501ef75412774d5ae3 to your computer and use it in GitHub Desktop.
image: node:8.9.0
stages:
- setup
- build
- tests
npm-install:
stage: setup
script:
- npm install
artifacts:
paths:
- node_modules
expire_in: 20 mins
app-build:
stage: build
dependencies:
- npm-install
artifacts:
paths:
- dist/
script:
- npm run build:prod
lint:
stage: tests
dependencies:
- npm-install
script:
- npm run lint
unit:
image: avatsaev/node-chrome
stage: tests
dependencies:
- npm-install
script:
- npm run test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment