Skip to content

Instantly share code, notes, and snippets.

@iammerrick
Created February 29, 2016 20:52
Show Gist options
  • Save iammerrick/b347621dc1ebd6fc2673 to your computer and use it in GitHub Desktop.
Save iammerrick/b347621dc1ebd6fc2673 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
if [[ $CI_BRANCH == mobile-web/* || $CI_BRANCH == "master" ]]; then
echo "Ahh, yes fresh code for some cookin'!";
npm run build
scripts/metrics
else echo "This build was skipped due to being an unrelated match."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment