Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franz Reischl
tomcat-miniREST
Commits
479f6d09
Commit
479f6d09
authored
Apr 19, 2019
by
Franz Reischl
Browse files
CI:
parent
9f62e84a
Pipeline
#374
passed with stages
in 1 minute and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
479f6d09
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment