inspec/support/ci/deploy_website_to_acceptance.sh
Adam Leff d022faea81
Add rake task for flushing Fastly cache
inspec.io is now hosted by Fastly which operates as a caching reverse
proxy. This change adds a Rake task that will flush the cache at Fastly
if the API key and Service ID are set in the appropriate environment
variables.

Flushing the cache is not required, so this will not error out if the
environment variables aren't provided; the cache will eventually clear
on its own. This will simply speed along the process as needed.

Signed-off-by: Adam Leff <adam@leff.co>
2017-04-28 14:22:00 -04:00

11 lines
272 B
Bash
Executable file

set -eux
if [ "z${TRAVIS_PULL_REQUEST}" == "zfalse" ]; then
echo "This change is not a pull request - skipping acceptance deploy"
exit 0
fi
cd www
npm install -g gulp
BUNDLE_GEMFILE="./Gemfile" bundle install
BUNDLE_GEMFILE="./Gemfile" bundle exec rake www:acceptance