git.iko.soy/typeable/servant-reflex
on master help sign in
Check for actual additions
commit38af0a3064fa1af4c7ba534584f31a2472a438cb authorGreg Hale <imalsogreg@gmail.com> dateThu 4 Aug 2016, 01:16 (10 years ago) parent21d5f77
2 files changed+7−4
.travis.yml−3 deploy.sh+7−1
.travis.yml−3
@@ -46,9 +46,6 @@ cache:
4646 - $HOME/.cabal/packages
4747 - $HOME/.cabal/store
4848
49−os:
50−- linux
51−
5249env:
5350 global:
5451 - ENCRYPTION_LABEL: "3c89d919c82e"
deploy.sh+7−1
@@ -30,7 +30,7 @@ git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH
3030cd ..
3131
3232# Clean out existing contents
33−rm -rf $OUT/* || exit 0
33+# rm -rf $OUT/* || exit 0
3434
3535# Run our compile script
3636doCompile
@@ -40,6 +40,12 @@ cd $OUT
4040git config user.name "Travis CI"
4141git config user.email "$COMMIT_AUTHOR_EMAIL"
4242
43+# If there are no changes to the compiled out (e.g. this is a README update) then just bail.
44+if [ -z `git diff --exit-code` ]; then
45+ echo "No changes to the output on this push; exiting."
46+ exit 0
47+fi
48+
4349# Commit the "changes", i.e. the new version.
4450# The delta will show diffs between new and old versions.
4551git add -A