Commit 22063d88 authored by hengwen's avatar hengwen

Debugging CI

parent 13e68a04
......@@ -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
......@@ -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
......
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