diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19860eb812e23edb7266ec7b84b63572c92ed9f2..b9a0adec83ad02d9556782ab3d89a6e773b8fd60 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