ci: install gem and use go binary for test runs

This commit is contained in:
Paul Hinze 2022-04-05 17:37:08 -05:00
parent 60a9528a82
commit df3c0b6b0f
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 6 additions and 1 deletions

View File

@ -23,7 +23,8 @@ git config --global url."https://${HASHIBOT_USERNAME}:${HASHIBOT_TOKEN}@github.c
gem install bundler -v "$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)"
make
bundle install
ln -s /vagrant/vagrant /bin/vagrant
gem build vagrant.gemspec
gem install vagrant*.gem
popd

View File

@ -3,6 +3,10 @@ set -x
export VAGRANT_EXPERIMENTAL="${VAGRANT_EXPERIMENTAL:-1}"
export VAGRANT_SPEC_BOX="${VAGRANT_SPEC_BOX}"
# Explicitly use Go binary
export VAGRANT_PATH=/vagrant/vagrant
vagrant-spec ${VAGRANT_SPEC_ARGS} --config /vagrant/test/vagrant-spec/configs/vagrant-spec.config.virtualbox.rb
result=$?