Skip to content

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IainNZ committed Sep 3, 2015
1 parent 12f505a commit 4e6c04e
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
language: cpp
compiler:
- clang
language: julia
os:
- linux
- osx
julia:
- release
- nightly
notifications:
email: false
env:
matrix:
- JULIAVERSION="julianightlies"
- JULIAVERSION="juliareleases"
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 git libpcre3-dev julia -y
- git config --global user.name "Travis User"
- git config --global user.email "[email protected]"
email: false
sudo: false
script:
- julia -e 'Pkg.init()'
- julia -e 'run(`ln -s $(pwd()) $(Pkg.dir("SIUnits"))`); Pkg.pin("SIUnits"); Pkg.resolve()'
- 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())'
- julia -e 'Pkg.test("SIUnits", coverage=true)'
after_success:
- if [ $JULIAVERSION = "julianightlies" ]; then julia -e 'cd(Pkg.dir("SIUnits")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; fi
- julia -e 'cd(Pkg.dir("SIUnits")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'

0 comments on commit 4e6c04e

Please sign in to comment.