Skip to content

Instantly share code, notes, and snippets.

@philcon93
Created March 18, 2019 00:18
Show Gist options
  • Save philcon93/31d0998158d4e6de3f59df7f7989ede6 to your computer and use it in GitHub Desktop.
Save philcon93/31d0998158d4e6de3f59df7f7989ede6 to your computer and use it in GitHub Desktop.
Percy bash script
#!/bin/bash
# Build with the build script
echo "Building Style Guide..."
npm run build
# Set the environment to be percy account
export PERCY_TOKEN=XXXXX
export PERCY_PROJECT=Neto/Style-Guide
# Visual regression testing for static Style Guide
echo "Start rendering pages and generating visual diffs for Style Guide"
percy snapshot dist/ --enable_javascript --ignore_regex "patternSource"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment