From 7f823a0302f8c5f281a48d063712337b0810c86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 3 Sep 2020 06:08:30 +0200 Subject: [PATCH] travis: check if NUR_REPO was changed from the default. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d63588a..ef6bb32 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,7 +19,7 @@ env: # # The repo name as used in # https://github.com/nix-community/NUR/blob/master/repos.json - - NUR_REPO= + - NUR_REPO="" matrix: include: @@ -35,6 +35,6 @@ script: after_success: - if [ -n "${CACHIX_CACHE}" ]; then nix-build ci.nix -A cacheOutputs | cachix push "${CACHIX_CACHE}"; fi - - if [ "cron" != "${TRAVIS_EVENT_TYPE}" -a "false" = "${TRAVIS_PULL_REQUEST}" -a "master" = "${TRAVIS_BRANCH}" ]; then + - if [[ NUR_REPO != "" && "cron" != "${TRAVIS_EVENT_TYPE}" && "false" = "${TRAVIS_PULL_REQUEST}" && "master" = "${TRAVIS_BRANCH}" ]]; then curl -XPOST "https://nur-update.herokuapp.com/update?repo=${NUR_REPO}"; fi