From fff101f47e4e6b2adccab6075314e5eec65538dd Mon Sep 17 00:00:00 2001 From: Anusha Mamidala Date: Wed, 17 Mar 2021 19:56:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 37 +++++++++++++------------------------ 1 file changed, 13 insertions(+), 24 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19860eb..b9a0ade 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,15 @@ -# 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 - -# Pick zero or more services to be used on all builds. -# Only needed when using a docker container to run your tests in. -# Check out: http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service -services: - - -# This folder is cached between builds -# http://docs.gitlab.com/ee/ci/yaml/README.html#cache -cache: - paths: - - node_modules/ - -test_async: +image: node:12.19.0 +pages: + cache: + paths: + - node_modules/ script: + - npm install -g @angular/cli@10.1.3 - npm install - - node ./specs/start.js ./specs/async.spec.js - -test_db: - script: - - npm install - - node ./specs/start.js ./specs/db-postgres.spec.js + - npm run build + artifacts: + paths: + - public + only: + - master + - pages -- GitLab