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