From a42eb1204badc387a620b4cd7a6a74be41e669ac Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Thu, 2 Nov 2017 20:32:53 -0500 Subject: [PATCH] Fix verification of tzdata default (#93) * Correct default tzdata version check Bash command would have non-zero return code if deps/build.jl was unchanged. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 940a60ef2..48a9c8495 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ env: script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi # Avoid setting JULIA_TZ_VERSION if the deps/build.jl file has been modified - - git fetch origin +:refs/remotes/origin/HEAD; git diff --name-only origin/HEAD HEAD | grep -qx "deps/build.jl" && unset JULIA_TZ_VERSION + - git fetch origin +:refs/remotes/origin/HEAD; if ! git diff --quiet origin/HEAD HEAD -- deps/build.jl; then unset JULIA_TZ_VERSION; fi - OPTIONS=$(julia -e 'isdefined(Base.JLOptions(), :use_compilecache) && print("--compilecache=no")') - julia $OPTIONS -e 'Pkg.clone(pwd()); Pkg.build("TimeZones"); Pkg.test("TimeZones"; coverage=true)'; after_success: