Created
September 3, 2017 17:37
-
-
Save dexterbrylle/878ed3706d2242de9f1037578db74d56 to your computer and use it in GitHub Desktop.
Gitlab CI for node/express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is a template, and might need editing before it works on your project. | |
# Official framework image. Look for the different tagged releases at: | |
# https://hub.docker.com/r/library/node/tags/ | |
image: node:latest | |
# This folder is cached between builds | |
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache | |
cache: | |
paths: | |
- node_modules/ | |
test: | |
stage: test | |
script: | |
- npm install | |
- npm test | |
pack: | |
stage: deploy | |
script: | |
- npm install | |
- npm pack | |
artifacts: | |
paths: | |
- ./*.tgz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment