Created
April 18, 2016 17:58
-
-
Save stevekuznetsov/edad6ef3d13c311a8a688a8f74ea3df0 to your computer and use it in GitHub Desktop.
integration test using vagrant-openshift
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
rm -rf * .vagrant | |
vagrant origin-local-checkout --replace | |
if [ -n "$ORIGIN_PULL_ID" ]; then | |
set +x | |
echo " | |
*****Locally Merging Pull Request: https://github.com/openshift/origin/pull/$ORIGIN_PULL_ID" | |
set -x | |
test_pull_requests --local_merge_pull_request $ORIGIN_PULL_ID --repo origin --config ~/.test_pull_requests_origin.json | |
fi | |
pushd origin | |
vagrant origin-init --stage inst --os rhel7 --instance-type m4.large origin_${JOB_NAME}_${BUILD_NUMBER} | |
vagrant up --provider aws | |
# REMOVE when etcd flake issue is addressed. | |
# use a ramdisk for etcd storage | |
if [ "$USE_RAMDISK" = "true" ]; then | |
vagrant ssh -c "sudo mkdir /tmp || true" | |
vagrant ssh -c "sudo mount -t tmpfs -o size=2048m tmpfs /tmp" | |
fi | |
# Print useful version information | |
vagrant ssh -c "go version" | |
vagrant ssh -c "sudo docker version" | |
time vagrant sync-origin -s | |
vagrant test-origin --target "test -o check" -d --skip-image-cleanup | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment