# init set -e export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export LC_ALL=en_US.UTF8 export DEBIAN_FRONTEND=noninteractive export CI=1 export CI_JOB_ID=1 export CI_JOB_NUMBER=100 export CI_BUILD_ID=12 export CI_BUILD_NUMBER=101 export CI_PROJECT_NAME=vexor/vx-test-repo export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5 export CI_BRANCH=test/pull-request export VX_ROOT=$(pwd) export PATH=$VX_ROOT/bin:$PATH mkdir -p $VX_ROOT/bin mkdir -p ${VX_ROOT}/data/vexor/vx-test-repo mkdir -p ${VX_ROOT}/code/vexor/vx-test-repo (echo LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBcE1rYW0rbWh3Q2RDUWRxdHU3VTlwNVZSRm1rcmJpOUhhQTN2YWdwaE12eXJ5V3F4CkM5c1krYW44akNOUlVwZWx5ako4ZjZiNi9WNWg0V2NubHdwT3ZWR0duczRIT2JuWWo4OUdLb0JGK1FwVDI4bXAKQ01pMGt6SE5TV01SWmcvZDl4M0FmMmNESWdKaGdHS2RLTGhPYitTSjJpUnpLQTZ5d215TlRyVUI0dEpocGdKLwpQQTFsR2xZWGtHYWQyS1JBZmc3bVRjdVFycUxKNHFpMlhkZ0FIY3RJU045d1VkYkUxeDVIRlB5enVrd0t1QkFFCmg3bTZWVnJKenNrS05yQnN1T1ZTWnVRNnJ2OVRpcVdYVnBBWGdyV3ZLenRsZjNTTkF0dG1BQmI1ZDJ1UE9hMisKcmVDV0V6SGJXT0ZnTVFEUXNYc1MzcnFDM2Z6dzRWTUtSUXdYSVFJREFRQUJBb0lCQURnWk9wVFBrY0JmM1IrYwpPYjhJY1lmbXZtYzV3STVQVENqeGJZc1ZJNGYvR3VDRUVPZnZXKzVLMzI0NTY4cUpVK2lsRFZ0TDFuQ0JQQ05IClFlUWFuem0yVW5VbndLLzNRL0daWjlLNlBwZ00yd1djL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U4V1kKclM0WkhxYjEwYkw4cG8rM3k3U2FmSUkzbjNkTWdsZVdHWWJMZExPbnNDOWFmRXBEUGhBTmc2Z3R5VEhBbi92Uwp5WFMrVWpQYkZ4RUE3MThKUlVoZG5mU3g4bXBERjMySVVCUTJBV1FJT3hrcDFhSDVwZ1luK0pDcTRScFd4MzJZCm1xWUZLUUtCZ1FDYkVzdllsZmVXSkRpK0NCSCt6aGZrZldJWTlTaXl1SEVVUWE0aE5iYVMvRGtETWdxTjU4Q3UKOGdYR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/key chmod 0600 ${VX_ROOT}/data/vexor/vx-test-repo/key export VX_PRIVATE_KEY=${VX_ROOT}/data/vexor/vx-test-repo/key (echo IyEvYmluL3NoCmV4ZWMgL3Vzci9iaW4vc3NoIC1BIC1vIExvZ0xldmVsPXF1aWV0IC1vIFN0cmljdEhvc3RLZXlDaGVja2luZz1ubyAtbyBVc2VyS25vd25Ib3N0c0ZpbGU9L2Rldi9udWxsIC1pICR7VlhfUk9PVH0vZGF0YS92ZXhvci92eC10ZXN0LXJlcG8va2V5ICRACg== | base64 --decode) > ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh chmod 0750 ${VX_ROOT}/data/vexor/vx-test-repo/git_ssh export GIT_SSH=${VX_ROOT}/data/vexor/vx-test-repo/git_ssh echo "$ git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo" git clone --depth=50 --branch=test/pull-request git@github.com:vexor/vx-test-repo.git ${VX_ROOT}/code/vexor/vx-test-repo echo "$ git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5" ( cd ${VX_ROOT}/code/vexor/vx-test-repo && git checkout -qf 8f53c077072674972e21c82a286acc07fada91f5 ) || exit 1 unset GIT_SSH echo "starting SSH Agent" eval "$(ssh-agent)" > /dev/null ssh-add $VX_PRIVATE_KEY 2> /dev/null cd ${VX_ROOT}/code/vexor/vx-test-repo echo "download latest version of vxvm" curl --tcp-nodelay --retry 3 --fail --silent --show-error -o $VX_ROOT/bin/vxvm https://raw.githubusercontent.com/vexor/vx-packages/master/vxvm chmod +x $VX_ROOT/bin/vxvm export CASHER_DIR=$HOME/.casher && ( mkdir -p $CASHER_DIR/bin && /usr/bin/curl https://raw2.github.com/dima-exe/casher/master/bin/casher --tcp-nodelay --retry 3 --fail --silent --show-error -o $HOME/.casher/bin/casher && chmod +x $HOME/.casher/bin/casher ) || true test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher fetch http://example.com/test/pull-request/rvm-1.9.3-gemfile.tgz http://example.com/master/rvm-1.9.3-gemfile.tgz || true test -f $HOME/.casher/bin/casher && casher-ruby $HOME/.casher/bin/casher add ~/.rubygems || true unset CASHER_DIR # before install echo \$\ sudo\ env\ PATH\=\$PATH\ vxvm\ install\ ruby\ 1.9.3 VX_VM_SOURCE="$(sudo env PATH=$PATH vxvm install ruby 1.9.3)" source "$VX_VM_SOURCE" echo \$\ export\ BUNDLE_GEMFILE\=\$\{PWD\}/Gemfile export BUNDLE_GEMFILE=${PWD}/Gemfile echo \$\ export\ GEM_HOME\=\~/.rubygems export GEM_HOME=~/.rubygems # announce echo \$\ ruby\ --version ruby --version echo \$\ gem\ --version gem --version echo \$\ bundle\ --version bundle --version # install echo \$\ bundle\ install\ bundle install echo \$\ bundle\ clean\ --force bundle clean --force # before script echo \$\ echo\ before\ script echo before script