From 06edc49de665eed14075d228a6f1e9b65a3e0af6 Mon Sep 17 00:00:00 2001 From: Paul Traina <216482-pleasantone@users.noreply.gitlab.com> Date: Sat, 7 Nov 2020 16:33:36 -0800 Subject: [PATCH] Try test CI/CD stage --- .gitlab-ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7e44c6a..69a70cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,13 +17,14 @@ default: # - echo "After script section" # - echo "For example you might do some cleanup here" -build1: +build: stage: build only: - tags artifacts: paths: - build/* + expire_in: 1 week script: - dpkg --add-architecture i386 - apt-get update @@ -38,12 +39,16 @@ build1: - npm run dist - (cd package.nw/dist ; mv *.zip *.exe *.7z *.json ../../build) -# test1: -# stage: test -# script: -# - echo "Do a test here" -# - echo "For example run a test suite" -# +test: + stage: test + script: + - npm install + - npm test + only: + - branches + except: + - master + # test2: # stage: test # script: