mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
d022faea81
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>
11 lines
272 B
Bash
Executable file
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
|