Update .travis.yml
Fabio Cevasco h3rald@h3rald.com
Thu, 23 Feb 2017 17:56:20 +0100
1 files changed,
8 insertions(+),
1 deletions(-)
jump to
M
.travis.yml
→
.travis.yml
@@ -37,9 +37,16 @@ if [ ! -x nifty/nifty ]; then
git clone --depth 1 git://github.com/h3rald/nifty nifty/ cd nifty ../nim-$BRANCH/bin/nim c --cc:$CC --verbosity:0 -d:release nifty.nim + else + cd nifty + git fetch origin + if ! git merge FETCH_HEAD | grep "Already up-to-date"; then + ../nim-$BRANCH/bin/nim c --cc:$CC --verbosity:0 -d:release nifty.nim + fi fi + cd .. before_script: - - export PATH="nifty:nim-$BRANCH/bin${PATH:+:$PATH}" + - export PATH="$PATH:$PWD/nifty:$PWD/nim-$BRANCH/bin" script: - nifty install - nifty build discount