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

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

test ci

parent adc96f54
5 merge requests!132Bringing July Release to production,!128Fixing #315 and #319,!126Continous Deployment with E2E Tests,!125Publish docker image,!119Publish docker image
...@@ -5,7 +5,7 @@ cache: ...@@ -5,7 +5,7 @@ cache:
paths: paths:
- .maven/ - .maven/
stages: stages:
- lint # - lint
- build - build
# - test # - test
# - analyze # - analyze
...@@ -17,34 +17,34 @@ before_script: ...@@ -17,34 +17,34 @@ before_script:
- export NG_CLI_ANALYTICS="false" - export NG_CLI_ANALYTICS="false"
- export MAVEN_USER_HOME=`pwd`/.maven - export MAVEN_USER_HOME=`pwd`/.maven
pmdCheckstylePrettierLint: # pmdCheckstylePrettierLint:
stage: lint # stage: lint
cache: {} # cache: {}
when: always # when: always
before_script: # before_script:
- 'export VERSION="6.40.0"' # - 'export VERSION="6.40.0"'
- 'wget "https://github.com/pmd/pmd/releases/download/pmd_releases%2F$VERSION/pmd-bin-$VERSION.zip"' # - 'wget "https://github.com/pmd/pmd/releases/download/pmd_releases%2F$VERSION/pmd-bin-$VERSION.zip"'
- 'jar -xf "pmd-bin-$VERSION.zip"' # - 'jar -xf "pmd-bin-$VERSION.zip"'
- 'chmod u+x "pmd-bin-$VERSION/bin/run.sh"' # - 'chmod u+x "pmd-bin-$VERSION/bin/run.sh"'
script: # script:
- SUCCESS=true # - SUCCESS=true
- echo "Running PMD" # - echo "Running PMD"
- '"pmd-bin-$VERSION/bin/run.sh" pmd -d src/main/java -f textcolor -R pmd_rules.xml 2>&1 | tee pmd.log || SUCCESS=false' # - '"pmd-bin-$VERSION/bin/run.sh" pmd -d src/main/java -f textcolor -R pmd_rules.xml 2>&1 | tee pmd.log || SUCCESS=false'
- echo "Running checkstyle" # - echo "Running checkstyle"
- ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME || SUCCESS=false # - ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME || SUCCESS=false
- echo "Running prettier" # - echo "Running prettier"
- npm install # - npm install
- npm run prettier:check # - npm run prettier:check
- echo "Running eslint" # - echo "Running eslint"
- 'npm run lint | tee lint.log' # - 'npm run lint | tee lint.log'
- "! grep -qE '✖ [0-9]+ problem' lint.log || SUCCESS=false" # - "! grep -qE '✖ [0-9]+ problem' lint.log || SUCCESS=false"
- $SUCCESS # - $SUCCESS
needs: [] # needs: []
artifacts: # artifacts:
when: on_failure # when: on_failure
expire_in: 30 days # expire_in: 30 days
paths: # paths:
- pmd.log # - pmd.log
maven-compile: maven-compile:
stage: build stage: build
...@@ -68,6 +68,7 @@ maven-compile: ...@@ -68,6 +68,7 @@ maven-compile:
# stage: test # stage: test
# script: # script:
# - ./mvnw -ntp verify -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers # - ./mvnw -ntp verify -P-webapp -Dmaven.repo.local=$MAVEN_USER_HOME -Dspring.profiles.active=testcontainers
# allow_failure: true
# artifacts: # artifacts:
# reports: # reports:
# junit: # junit:
...@@ -115,9 +116,9 @@ maven-package: ...@@ -115,9 +116,9 @@ maven-package:
# 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
......
...@@ -26826,7 +26826,7 @@ ...@@ -26826,7 +26826,7 @@
"text-table": "0.2.0", "text-table": "0.2.0",
"tree-kill": "1.2.2", "tree-kill": "1.2.2",
"tslib": "2.3.1", "tslib": "2.3.1",
"webpack": "5.65.0", "webpack": "5.66.0",
"webpack-dev-middleware": "5.2.2", "webpack-dev-middleware": "5.2.2",
"webpack-dev-server": "4.6.0", "webpack-dev-server": "4.6.0",
"webpack-merge": "5.8.0", "webpack-merge": "5.8.0",
...@@ -27455,8 +27455,7 @@ ...@@ -27455,8 +27455,7 @@
} }
}, },
"webpack": { "webpack": {
"version": "5.65.0", "version": "https://registry.npmjs.org/webpack/-/webpack-5.65.0.tgz",
"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.65.0.tgz",
"integrity": "sha512-Q5or2o6EKs7+oKmJo7LaqZaMOlDWQse9Tm5l1WAfU/ujLGN5Pb0SqGeVkN/4bpPmEqEP5RnVhiqsOtWtUVwGRw==", "integrity": "sha512-Q5or2o6EKs7+oKmJo7LaqZaMOlDWQse9Tm5l1WAfU/ujLGN5Pb0SqGeVkN/4bpPmEqEP5RnVhiqsOtWtUVwGRw==",
"dev": true, "dev": true,
"requires": { "requires": {
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