1 | # This file is a template, and might need editing before it works on your project.
|
2 | # Official framework image. Look for the different tagged releases at:
|
3 | # https://hub.docker.com/r/library/node/tags/
|
4 | image: node:latest
|
5 |
|
6 | # This folder is cached between builds
|
7 | # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
8 | cache:
|
9 | paths:
|
10 | - node_modules/
|
11 |
|
12 | test:
|
13 | stage: test
|
14 | script:
|
15 | - npm install
|
16 | - npm test
|
17 |
|
18 | pack:
|
19 | stage: deploy
|
20 | script:
|
21 | - npm install
|
22 | - npm pack
|
23 | artifacts:
|
24 | paths:
|
25 | - ./*.tgz |
\ | No newline at end of file |