Commit fefcc0c2 authored by hengwen's avatar hengwen

Test all

parent 47bc5926
Pipeline #190136 passed with stages
in 9 minutes and 48 seconds
...@@ -35,26 +35,26 @@ masterJobWindowsRestful: ...@@ -35,26 +35,26 @@ masterJobWindowsRestful:
only: only:
- master - master
#branchJobWindowsRpc: branchJobWindowsRpc:
# stage: windows stage: windows
# script: script:
# - cd rpc - cd rpc
# - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml
# tags: tags:
# - Windows10 - Windows10
# except: except:
# - master - master
#
#branchJobWindowsRestful: branchJobWindowsRestful:
# stage: windows stage: windows
# script: script:
# - cd restful - cd restful
# # TODO: we have to skip tests for now, because most tests require a running instance of zookeeper # TODO: we have to skip tests for now, because most tests require a running instance of zookeeper
# - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml -DskipTests - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean install --settings ..\settings.xml -DskipTests
# tags: tags:
# - Windows10 - Windows10
# except: except:
# - master - master
# run tests # run tests
branchJobLinux: branchJobLinux:
......
...@@ -65,20 +65,14 @@ docker run \ ...@@ -65,20 +65,14 @@ docker run \
rpc-server:latest rpc-server:latest
docker logs --tail 20 autopilot
docker logs --tail 100 rpc-server
cd ${CURR_DIR} cd ${CURR_DIR}
#docker build -t server-test-runner -f ./docker/TestDockerfile . #docker build -t server-test-runner -f ./docker/TestDockerfile .
docker run \ docker run \
--rm --network="simulation-network" \ --rm --network="simulation-network" \
-e "ZOO_SERVERS=zookeeper" \ -e "ZOO_SERVERS=zookeeper" \
montisim-server-builder sh -c "cd restful && mvn test -Dtest=SimulationServiceTest -s ../settings.xml" \ montisim-server-builder sh -c "cd restful && mvn test -s ../settings.xml" \
2>&1 | tee result.txt 2>&1 | tee result.txt
docker stop autopilot
docker logs --tail 20 autopilot
docker logs rpc-server
dockerCleanUp dockerCleanUp
...@@ -87,4 +81,3 @@ tail -10 result.txt | grep "BUILD SUCCESS" ...@@ -87,4 +81,3 @@ tail -10 result.txt | grep "BUILD SUCCESS"
code=$? code=$?
echo $code echo $code
exit $code exit $code
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