Skip to content

Commit

Permalink
if sdist fails, don't try to install from it
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jan 13, 2017
1 parent bf3334b commit e772fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ script:
cabal test --show-details=always;
cabal bench || true;
cabal sdist || true;
SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && (cd dist && cabal install --force-reinstalls "$SRC_TGZ");;
SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz
if [ -f $SRC_TGZ ]; then (cd dist && cabal install --force-reinstalls "$SRC_TGZ"); fi;
esac

notifications:
Expand Down

0 comments on commit e772fa4

Please sign in to comment.