From 1333be7ed97e4064b3278302df9720576fc84736 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Thu, 6 Sep 2018 22:51:29 -0700 Subject: [PATCH] The previous commit, but better --- .travis.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a16b328..fb51a49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,10 +9,19 @@ julia: - nightly notifications: email: false -allow_failures: - julia: - - nightly -before_script: - - if [ $(uname) = "Linux" ]; then alias julia="xvfb-run $(which julia)"; fi +matrix: + allow_failures: + julia: + - 1.0 + - nightly +script: + - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi + - julia -e 'using Pkg; Pkg.clone(pwd())' + - | + if [ $(uname) = "Linux" ]; then + xvfb-run julia -e 'using Pkg; Pkg.build("Tk"); Pkg.test("Tk", coverage=true)' + else + julia -e 'using Pkg; Pkg.build("Tk"); Pkg.test("Tk", coverage=true)' + fi after_success: - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';