Something went wrong on our end
-
Marco Lorini authoredMarco Lorini authored
.gitlab-ci.yml 2.01 KiB
stages:
- build
- test
- package
- deploy
build:
stage: build
image: node:12.7-alpine
only:
- master
before_script:
- npm install -g @angular/cli@8.3.26
- npm ci
script:
- ng build
artifacts:
paths:
- dist/
expire_in: 1 hours
cache:
paths:
- node_modules/
tags:
- kubernetes
- register-front
# unit_test:
# stage: test
# image: node:latest
# only:
# - master
# before_script:
# - apt-get update
# - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# - apt-get install -y ./google-chrome-stable_current_amd64.deb
# - export CHROME_BIN=/usr/bin/google-chrome
# - npm install -g @angular/cli@8.3.26
# - npm ci
# script:
# - ng test
# tags:
# - kubernetes
# - register-front
# e2e_test:
# stage: test
# image: trion/ng-cli-e2e
# only:
# - master
# allow_failure: false
# before_script:
# - npm ci
# script:
# - ng e2e
# tags:
# - kubernetes
# - register-front
package:
stage: package
image: docker:latest
only:
- master
services:
- docker:dind
before_script:
- version=`cat version`
- echo $version
- docker info