Skip to content

Instantly share code, notes, and snippets.

@alejandrociatti
Last active January 25, 2019 22:17
Show Gist options
  • Save alejandrociatti/c51bd789d5f4f482d155bfcdbf12e4cf to your computer and use it in GitHub Desktop.
Save alejandrociatti/c51bd789d5f4f482d155bfcdbf12e4cf to your computer and use it in GitHub Desktop.
#!/bin/bash
if git checkout master && git pull origin master; then
cd test/
echo "running tests ..."
if julia runtests.jl; then
say "tests OK"
cd ../
if gcloud app deploy -q --image-url="gcr.io/timeline-pdf/github.com/devnacho/timeline-calc:$(git rev-parse HEAD)"; then
say "deploy successful, engines online, weapons online, all systems nominal"
fi
else
echo "TESTS FAILED !"
fi
else
echo "check yoself 'fore u wreck yoself!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment