BIAndrews/ec2tagfacts

View on GitHub
qa.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
#
# Kinda like a local travisCI run
#
#######################################

# need ruby dev
gem install io-console
bundle install > /dev/null

PUPPET_GEM_VERSION="~> 3.3.0"
bundle update > /dev/null
rake spec

if [ $? -ne 0 ];then
  echo "ERROR with puppet 3.3"
  exit 1;
fi

PUPPET_GEM_VERSION="~> 3.8.0"
bundle update > /dev/null
rake spec

if [ $? -ne 0 ];then
  echo "ERROR with puppet 3.8"
  exit 1;
fi

PUPPET_GEM_VERSION="~> 4.8.0"
bundle update > /dev/null
rake spec

if [ $? -ne 0 ];then
  echo "ERROR with puppet 4.8"
  exit 1;
fi

echo "

Verified with puppet 3.3, 3.8, and 4.8
"