Added curtains

This commit is contained in:
Jacob Salvi 2020-04-09 14:01:40 +02:00
parent bdf0f87d77
commit e5d3c95f3e

View File

@ -6,12 +6,13 @@ stages:
- test
- code_quality
- deploy
- hopeItWorks
#Sets up the docker
smarthut_deploy:
stage: deploy
image: docker:latest
tags:
- dind
services:
- docker:dind
variables:
@ -21,11 +22,13 @@ smarthut_deploy:
- docker info
- docker login -u smarthutsm -p $CI_DOCKER_PASS #GiovanniRoberto
script:
- "docker build -t smarthutsm/smarthut:${CI_COMMIT_BRANCH} --pull ."
- "docker push smarthutsm/smarthut:${CI_COMMIT_BRANCH}"
- "docker build -t smarthutsm/smarthut-backend:${CI_COMMIT_BRANCH} --pull ."
- "docker push smarthutsm/smarthut-backend:${CI_COMMIT_BRANCH}"
after_script:
- docker logout
only:
- dev
- master
#base checks for the code
build:
@ -44,17 +47,15 @@ test:
script:
- gradle test
artifacts:
when: always
paths:
- build/test-results/test/TEST-*.xml
reports:
junit: build/test-results/test/TEST-*.xml
# after_script:
# - npm junit-viewer --results=/home/git/gitlab/shared/artifacts/build/test-results/test --port=3000
#Runs a quality check on the code and creates a report on the codes
code_quality:
stage: code_quality
allow_failure: true
script:
- gradle cpdCheck
artifacts:
@ -62,9 +63,3 @@ code_quality:
- build/reports/cpd/cpdCheck.xml
#create a report on the quality of the code
expose_as: 'Code Quality Report'
allow_failure: true
Robe:
stage: hopeItWorks
script:
- curl -L