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