From b02e25c2762765930e5bf74c0c140db30abba097 Mon Sep 17 00:00:00 2001 From: Fabio Busatto <fabio@gitlab.com> Date: Thu, 3 Aug 2017 00:10:46 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..02784ad --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +# 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 \ No newline at end of file -- GitLab