This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit b679cc94 authored by Eduard Frankford's avatar Eduard Frankford
Browse files

testing

parent f886de71
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
...@@ -6,11 +6,11 @@ cache: ...@@ -6,11 +6,11 @@ cache:
- .maven/ - .maven/
stages: stages:
# - lint # - lint
- build # - build
# - test # - test
# - analyze # - analyze
- package # - package
- release # - release
- deploy - deploy
before_script: before_script:
...@@ -46,16 +46,16 @@ before_script: ...@@ -46,16 +46,16 @@ before_script:
# paths: # paths:
# - pmd.log # - pmd.log
maven-compile: # maven-compile:
stage: build # stage: build
script: # script:
- ./mvnw -ntp compile -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME # - ./mvnw -ntp compile -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME
artifacts: # artifacts:
paths: # paths:
- target/classes/ # - target/classes/
- target/generated-sources/ # - target/generated-sources/
expire_in: 10 days # expire_in: 10 days
needs: [] # needs: []
# maven-test: # maven-test:
# # DinD service is required for Testcontainers # # DinD service is required for Testcontainers
...@@ -108,29 +108,29 @@ maven-compile: ...@@ -108,29 +108,29 @@ maven-compile:
# # - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://server.arctis.at/sonar/ -Dsonar.login=${SONAR_TOKEN} -Dmaven.repo.local=$MAVEN_USER_HOME # # - ./mvnw -ntp org.jacoco:jacoco-maven-plugin:prepare-agent initialize sonar:sonar -Dsonar.organization=codeAbility -Dsonar.host.url=https://server.arctis.at/sonar/ -Dsonar.login=${SONAR_TOKEN} -Dmaven.repo.local=$MAVEN_USER_HOME
# allow_failure: true # allow_failure: true
maven-package: # maven-package:
stage: package # stage: package
script: # script:
- ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME # - ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
# Uncomment the following line to use gitlabs container registry. You need to adapt the REGISTRY_URL in case you are not using gitlab.com # Uncomment the following line to use gitlabs container registry. You need to adapt the REGISTRY_URL in case you are not using gitlab.com
docker-push: # docker-push:
stage: release # stage: release
# only: # only:
# refs: # refs:
# - development # - development
variables: # variables:
REGISTRY_URL: sharing-codeability.uibk.ac.at:5051 # REGISTRY_URL: sharing-codeability.uibk.ac.at:5051
IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform # IMAGE_TAG: sharing-codeability.uibk.ac.at:5051/sharing/codeability-sharing-platform
script: # script:
- ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME # - ./mvnw -ntp verify -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
- ./mvnw -ntp jib:build -Pprod -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME # - ./mvnw -ntp jib:build -Pprod -Djib.to.image=$IMAGE_TAG -Djib.to.auth.username=gitlab-ci-token -Djib.to.auth.password=$CI_BUILD_TOKEN -Dmaven.repo.local=$MAVEN_USER_HOME
when: always # when: always
deploy: deploy:
stage: deploy stage: deploy
dependencies: # dependencies:
- 'docker-push' # - 'docker-push'
image: ubuntu:20.04 image: ubuntu:20.04
before_script: before_script:
- apt-get update -qy - apt-get update -qy
...@@ -143,5 +143,5 @@ deploy: ...@@ -143,5 +143,5 @@ deploy:
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script: script:
- whoami - whoami
- ssh contDeploy@codeability-austria -p 1022 -f "cd /home/michael/gitsearch; git pull; cd src/main/docker/; GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build gitsearch-app" - ssh contDeploy@codeability-austria -p 1022 "cd /home/michael/gitsearch && git pull && cd src/main/docker/ && GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` COMMIT_ID=`git rev-parse HEAD` SPRING_PROFILES_ACTIVE=staging,swagger docker-compose -f gitsearch.yml up -d --no-deps --build gitsearch-app && exit"
when: always when: always
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment