# 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 IyEvYmluL2Jhc2gKCmk9MApmaWxlcz0oKQoKQkxBQ0s9IlwwMzNbMzBtIgpSRUQ9IlwwMzNbMzFtIgpHUkVFTj0iXDAzM1szMm0iCllFTExPVz0iXDAzM1szM20iCkJMVUU9IlwwMzNbMzRtIgpQSU5LPSJcMDMzWzM1bSIKQ1lBTj0iXDAzM1szNm0iCldISVRFPSJcMDMzWzM3bSIKTk9STUFMPSJcMDMzWzA7MzltIgoKSk9CUz0ke0NJX1BBUkFMTEVMX0pPQlM6LTF9CkpPQl9OVU1CRVI9JHtDSV9QQVJBTExFTF9KT0JfTlVNQkVSOi0wfQoKZm9yIGZpbGUgaW4gJChmaW5kIC4vc3BlYyAtbmFtZSAiKl9zcGVjLnJiIiB8IHNvcnQpCmRvCiAgaWYgWyAkKCgkaSAlICRKT0JTKSkgLWVxICRKT0JfTlVNQkVSIF0KICB0aGVuCiAgICBmaWxlcys9IiAkZmlsZSIKICBmaQogICgoaSsrKSkKZG9uZQoKZWNobyAtZSAiJHtHUkVFTn1QYXJhbGxlbCBydW5uaW5nICQoKCR7Sk9CX05VTUJFUn0gKyAxKSkgb2YgJHtKT0JTfSAke05PUk1BTH0iCmVjaG8gImJ1bmRsZSBleGVjIHJzcGVjICRAICR7ZmlsZXNbQF19IgpleGVjIGJ1bmRsZSBleGV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YR1NmdEVpVGNMYXQwYTBQNnZlYWNnUEt1aEFIZTFLN2g4NCtSMHJFL2N2MVFUQnBXMzhSUWdhYkxzK2V4eQpqeUY1UjFOSEkvTFhzREJOYWlSMDVzclhkaVNadW1MMGF3WDdyaUM0RHpJazZaWllSZGJuYlE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo= | 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 # before install echo \$\ sudo\ env\ PATH\=\$PATH\ vxvm\ install\ go\ 1.2 VX_VM_SOURCE="$(sudo env PATH=$PATH vxvm install go 1.2)" source "$VX_VM_SOURCE" echo \$\ export\ GOPATH\=\$VX_ROOT/gopath:\$GOPATH export GOPATH=$VX_ROOT/gopath:$GOPATH echo \$\ export\ PATH\=\$VX_ROOT/gopath/bin:\$PATH export PATH=$VX_ROOT/gopath/bin:$PATH echo \$\ export\ VX_ORIG_CODE_ROOT\=\$\(pwd\) export VX_ORIG_CODE_ROOT=$(pwd) echo \$\ export\ VX_NEW_CODE_ROOT\=\$VX_ROOT/gopath/src/github.com/vexor/vx-test-repo export VX_NEW_CODE_ROOT=$VX_ROOT/gopath/src/github.com/vexor/vx-test-repo echo \$\ mkdir\ -p\ \$VX_NEW_CODE_ROOT mkdir -p $VX_NEW_CODE_ROOT echo \$\ rmdir\ \$VX_NEW_CODE_ROOT rmdir $VX_NEW_CODE_ROOT echo \$\ mv\ \$VX_ORIG_CODE_ROOT\ \$VX_NEW_CODE_ROOT mv $VX_ORIG_CODE_ROOT $VX_NEW_CODE_ROOT echo \$\ ln\ -s\ \$VX_NEW_CODE_ROOT\ \$VX_ORIG_CODE_ROOT ln -s $VX_NEW_CODE_ROOT $VX_ORIG_CODE_ROOT echo \$\ cd\ \$VX_NEW_CODE_ROOT cd $VX_NEW_CODE_ROOT # announce echo \$\ go\ version go version echo \$\ go\ env go env # install echo \$\ go\ get\ -v\ ./... go get -v ./... # before script