From 80c734efe2988ca19c1108828c852d57e7376746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Thu, 14 Jul 2016 11:14:44 +0200 Subject: [PATCH] Utilize cached kcov if exists --- .travis.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index ee8cc2677..cd432dc43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,14 +51,15 @@ addons: install: - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION - - (true && [ "$RUN_COVERAGE" = "false" ]) || - (wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && - tar xzf master.tar.gz && - mkdir -p kcov-master/build && - cd kcov-master/build && - cmake .. && - make && make install DESTDIR=../tmp && - cd) + - ([ "$RUN_COVERAGE" = "false" ]) || (test -x $KCOV_CMD) || ( + wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && + tar xzf master.tar.gz && + mkdir -p kcov-master/build && + cd kcov-master/build && + cmake .. && + make && make install DESTDIR=../tmp && + cd + ) script: - if [ "$RUN_TESTS" = "true" ]; then ./test.sh; fi