Commit 479f6d09 authored by Franz Reischl's avatar Franz Reischl
Browse files

CI:

parent 9f62e84a
Pipeline #374 passed with stages
in 1 minute and 22 seconds
......@@ -33,9 +33,10 @@ build:
test:
stage: test
script:
- echo "Unit tests with JUnit and Maven"
- mvn $MAVEN_CLI_OPTS test
- # Package the WAR file when tests are successful
# Package the WAR file when tests are successful
- mvn $MAVEN_CLI_OPTS package
rest_test_tomcat:
......@@ -45,16 +46,17 @@ rest_test_tomcat:
- echo "Installing Tomcat server"
- cp target/*.war $TOMCAT_WEB_DIR
- sleep 60 # Waiting for tomcat to auto-deploy WAR
- # Installing npm
# Installing npm
- apk update
- apk upgrade
- apk add npm
- # Installing newman via npm
# Installing newman via npm
- npm install -g newman
- # Run Postman collection
# Run Postman collection
- newman run $NEWMAN_COLLECTION -e $NEWMAN_ENVIRONMENT --reporters cli,json --reporter-json-export apitest/postman_result.json
artifacts:
- apitest/postman_result.json
paths:
- apitest/postman_result.json
allow_failure: true
deploy:
......@@ -62,7 +64,8 @@ deploy:
script:
- echo "Deploying with Maven"
artifacts:
- target/*.war
paths:
- target/*.war
# only:
# - master
......
Markdown is supported
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