Skip to content

Commit

Permalink
Fix: Secure env variables are not available for pull requests from fo…
Browse files Browse the repository at this point in the history
…rks.
  • Loading branch information
himura committed Mar 1, 2015
1 parent 8756c29 commit 2dc2255
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
matrix:
- GHCVER=7.4.2
- GHCVER=7.6.3
- GHCVER=7.8.3 USE_COVERALLS=1 CABAL_FLAGS="-frun-integrated-test"
- GHCVER=7.8.3 USE_COVERALLS=1 RUN_INTEGRATED_TEST=1
- GHCVER=head

matrix:
Expand Down Expand Up @@ -48,6 +48,12 @@ install:

script:
- |
if [ -n "$RUN_INTEGRATED_TEST" -a "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
CABAL_FLAGS="-frun-integrated-test"
else
CABAL_FLAGS=
fi
if [ -n "$USE_COVERALLS" ]; then
cabal configure --enable-tests --enable-library-coverage $CABAL_FLAGS
else
Expand Down

0 comments on commit 2dc2255

Please sign in to comment.