Added curtains
This commit is contained in:
parent
bdf0f87d77
commit
e5d3c95f3e
1 changed files with 9 additions and 14 deletions
|
@ -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,27 +47,19 @@ 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:
|
||||
paths:
|
||||
- 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
|
||||
expose_as: 'Code Quality Report'
|
Loading…
Reference in a new issue