Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
monticore
EmbeddedMontiArc
simulators
server
Commits
22063d88
Commit
22063d88
authored
Sep 02, 2019
by
hengwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging CI
parent
13e68a04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
.gitlab-ci.yml
.gitlab-ci.yml
+5
-5
docker/run_test.sh
docker/run_test.sh
+6
-5
No files found.
.gitlab-ci.yml
View file @
22063d88
...
...
@@ -63,11 +63,11 @@ BranchJobLinux:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
-
cd docker
-
./build.sh
#
- ./build.sh
-
./run_test.sh
-
docker tag rmi-server:latest $CI_REGISTRY_IMAGE:rpc
-
docker tag restful-server:latest $CI_REGISTRY_IMAGE:restful
-
docker push $CI_REGISTRY_IMAGE:rpc
-
docker push $CI_REGISTRY_IMAGE:restful
#
- docker tag rmi-server:latest $CI_REGISTRY_IMAGE:rpc
#
- docker tag restful-server:latest $CI_REGISTRY_IMAGE:restful
#
- docker push $CI_REGISTRY_IMAGE:rpc
#
- docker push $CI_REGISTRY_IMAGE:restful
except
:
-
master
docker/run_test.sh
View file @
22063d88
...
...
@@ -58,15 +58,16 @@ docker run \
cd
${
CURR_DIR
}
#docker build -t server-test-runner -f ./docker/TestDockerfile .
docker run
\
--rm
--network
=
"simulation-network"
\
-e
"ZOO_SERVERS=zookeeper"
\
montisim-server-builder sh
-c
"cd restful && mvn test -s ../settings.xml"
\
2>&1 |
tee
result.txt
#
docker run \
#
--rm --network="simulation-network" \
#
-e "ZOO_SERVERS=zookeeper" \
#
montisim-server-builder sh -c "cd restful && mvn test -s ../settings.xml" \
#
2>&1 | tee result.txt
tail
-10
result.txt |
grep
"BUILD SUCCESS"
# code=0 if "BUILD SUCCESS" is found in the end of result.txt
code
=
$?
echo
$code
dockerCleanUp
...
...
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