Last active
August 29, 2015 14:01
-
-
Save dave-tucker/50930ba668cb9f8dd2e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# OVS_VERSION is passed in my Jenkins Multi-Configuration Job | |
echo "---> Starting OVS $OVS_VERSION" | |
# Assume all containers are already downloaded | |
CID=$(docker run -p 6640:6640 -p 6633:6633 -p 6644:6644 --privileged=true -d -i -t davetucker/docker-ovs:$OVS_VERSION /bin/supervisord -n) | |
echo "---> Running Tests" | |
# Assume we are in source directory | |
cd library | |
mvn -Pintegrationtest -Dovsdbserver.ipaddress=127.0.0.1 -Dovsdbserver.port=6640 verify | |
echo "---> Cleaning up" | |
docker stop $CID | |
docker rm $CID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment