-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())' |