Sha256: 3284588ed861401159389473b1e2ede6c22267fb77a25ec09142b3af1a0a91a9

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

#!/bin/bash

set -evx

# run unit tests
/opt/chefdk/embedded/bin/bundle install && /opt/chefdk/bin/chef exec rake

# Don't run acceptance tests on forks. The decryption keys are not available.
if [ "${TRAVIS_REPO_SLUG}" = "chef/mixlib-install" ]; then
  # setup acceptance tests
  cd acceptance && export BUNDLE_GEMFILE=$PWD/Gemfile && /opt/chefdk/embedded/bin/bundle install && export APPBUNDLER_ALLOW_RVM=true
  # run acceptances tests and force cleanup
  # only testing bourne until issues with powershell suite resovled:
  # 1) inspec not finding chef package once connected (not reproducible locally)
  # 2) currently no way to mask password (sensitive true) AND know what the error is if inspec fails
  /opt/chefdk/embedded/bin/bundle exec chef-acceptance test bourne --force-destroy
fi

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mixlib-install-2.0.1 ci/script.sh