Skip to content

Commit

Permalink
Merge pull request #8744 from JuliaLang/tk/default-travis-multi-os
Browse files Browse the repository at this point in the history
Use language: julia in default Travis
  • Loading branch information
tkelman committed Dec 15, 2014
2 parents 9c7a490 + a92ea42 commit f91d927
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions base/pkg/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,19 @@ end
function travis(pkg::AbstractString; force::Bool=false)
genfile(pkg,".travis.yml",force) do io
print(io, """
language: cpp
compiler:
- clang
language: julia
os:
- linux
- osx
julia:
- release
- nightly
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 --check-bounds=yes -e 'versioninfo(); Pkg.init(); Pkg.clone(pwd()); Pkg.build("$pkg"); Pkg.test("$pkg")'
# uncomment the following lines to override the default test script
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("$pkg"); Pkg.test("$pkg"; coverage=true)'
""")
end
end
Expand Down

0 comments on commit f91d927

Please sign in to comment.