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())';