Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created August 13, 2017 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpritchett/2e5d14941e88b34a6d4180ff6b3535e9 to your computer and use it in GitHub Desktop.
Save dpritchett/2e5d14941e88b34a6d4180ff6b3535e9 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
cd /Users/daniel/Projects/book/dpchat/Book
./rake clean screen &> log/build_log.txt
if ! grep 'Build failed' log/build_log.txt; then
# osascript is osx-only
osascript -e 'display notification "✅ Success! ✅" with title "bookbuild"'
echo BUILD SUCCEEDED
else
osascript -e 'display notification "🛑 Build error! 🛑" with title "bookbuild"'
open log/build_log.txt
fi
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.pml$",
"shell": "/bin/bash",
"cmd": "${cwd}/bin/smoke-test"
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment