Commit 6000a70e authored by hengwen's avatar hengwen

Run test in containers

parent ef206c96
......@@ -24,9 +24,9 @@ CURR_DIR=$(pwd)
SIMULATOR_DIR="${CURR_DIR}/../rpc"
# prepare docker image for rpc-server
cd $SIMULATOR_DIR
mvn clean install -s ../settings.xml -DskipTests
./build.sh
#cd $SIMULATOR_DIR
#mvn clean install -s ../settings.xml -DskipTests
#./build.sh
# create network
docker network create simulation-network
......@@ -57,7 +57,7 @@ docker run \
cd $CURR_DIR
docker build -t server-test-runner -f TestDockerfile ..
docker run --network="simulation-network" -e "ZOO_SERVERS=zookeeper" server-test-runner sh -c "cd restful && mvn test -s ../settings.xml"
docker run --rm --network="simulation-network" -e "ZOO_SERVERS=zookeeper" server-test-runner sh -c "cd restful && mvn test -s ../settings.xml"
# build simulator
#cd $SIMULATOR_DIR
......
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