Permalink
Browse files

Testing for sauce access key instead of a pull request

  • Loading branch information...
carhartl committed Apr 9, 2015
1 parent f122b36 commit 2c8c2bd3bd723ae7fa0ec347fe7c7f347d8b8d41
Showing with 2 additions and 2 deletions.
  1. +2 −2 travis.sh
View
@@ -1,5 +1,5 @@
#!/bin/bash
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
if [ "${SAUCE_ACCESS_KEY}" = "false" ]; then
grunt ci --verbose; else
npm test
fi
fi

1 comment on commit 2c8c2bd

@Krinkle

This comment has been minimized.

Contributor

Krinkle commented on 2c8c2bd Apr 9, 2015

TRAVIS_PULL_REQUEST is literally set to the string "false" by Travis CI. SAUCE_ACCESS_KEY however wouldn't exist if unset. Should probably compare to "" instead, or use -z.

EDIT: Ah, fixed in #4.

Please sign in to comment.