From e9e6561515a6e776bb97925b4e4ec8f630a9fb11 Mon Sep 17 00:00:00 2001 From: Carlo Baldassi Date: Tue, 29 Sep 2015 11:26:13 -0400 Subject: [PATCH] Update travis script --- .travis.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7497455..2768587 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,22 +1,16 @@ -language: cpp -compiler: - - clang +# Documentation: http://docs.travis-ci.com/user/languages/julia/ +language: julia +os: + - linux + - osx +julia: + - nightly + - 0.4 + - 0.3 notifications: email: false -env: - matrix: - - JULIAVERSION="juliareleases" - - JULIAVERSION="julianightlies" -before_install: - - sudo add-apt-repository ppa:staticfloat/julia-deps -y - - sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y - - sudo apt-get update -qq -y - - sudo apt-get install libpcre3-dev julia -y - - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi script: - - julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("FastaIO"))`); Pkg.pin("FastaIO"); Pkg.resolve()' - - julia -e 'using FastaIO; @assert isdefined(:FastaIO); @assert typeof(FastaIO) === Module' - - if [ $JULIAVERSION = "julianightlies" ]; then julia --code-coverage test/runtests.jl; fi - - if [ $JULIAVERSION = "juliareleases" ]; then julia test/runtests.jl; fi + - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi + - julia -e 'Pkg.clone(pwd()); Pkg.build("FastaIO"); Pkg.test("FastaIO"; coverage=true)' after_success: - - if [ $JULIAVERSION = "julianightlies" ]; then julia -e 'cd(Pkg.dir("FastaIO")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; fi + - julia -e 'cd(Pkg.dir("FastaIO")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder()); Codecov.submit(process_folder())'