Sha256: 6cc7fa5ee8b5540709cd741e30120b8cc31f1efb4aed5d689f0aafc33df231fa

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

#!/bin/bash
set -eu

function cleanup {
  rm $FOG_RC
}

# Override default of ~/.fog and delete afterwards.
export FOG_RC=$(mktemp /tmp/vcloud_fog_rc.XXXXXXXXXX)
trap cleanup EXIT

cat <<EOF >${FOG_RC}
${FOG_CREDENTIAL}:
  vcloud_director_host: '${API_HOST}'
  vcloud_director_username: '${API_USERNAME}'
  vcloud_director_password: ''
EOF

git clean -ffdx

bundle install --path "${HOME}/bundles/${JOB_NAME}"
bundle exec rake

# Obtain the integration test parameters
git clone git@github.gds:gds/vcloud-tools-testing-config.git
mv vcloud-tools-testing-config/vcloud_tools_testing_config.yaml spec/integration/
rm -rf vcloud-tools-testing-config

# Never log token to STDOUT.
set +x
eval $(printenv API_PASSWORD | bundle exec vcloud-login)

bundle exec rake integration:all

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vcloud-launcher-0.5.0 jenkins_tests.sh
vcloud-launcher-0.4.0 jenkins_tests.sh
vcloud-launcher-0.3.1 jenkins_tests.sh
vcloud-launcher-0.3.0 jenkins_tests.sh