Skip to content

Commit ef81ca5

Browse files
committed
Add Travis CI testing
1 parent c9c5fcf commit ef81ca5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: cpp
2+
compiler:
3+
- clang
4+
notifications:
5+
email: false
6+
env:
7+
matrix:
8+
- JULIAVERSION="juliareleases"
9+
- JULIAVERSION="julianightlies"
10+
before_install:
11+
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
12+
- sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
13+
- sudo apt-get update -qq -y
14+
- sudo apt-get install libpcre3-dev julia -y
15+
script:
16+
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("RandomMatrices"))`); Pkg.pin("RandomMatrices"); Pkg.resolve()'
17+
- if [ $JULIAVERSION = "julianightlies" ]; then julia --code-coverage test/runtests.jl; fi
18+
- if [ $JULIAVERSION = "juliareleases" ]; then julia test/runtests.jl; fi
19+
after_success:
20+
- if [ $JULIAVERSION = "julianightlies" ]; then julia -e 'cd(Pkg.dir("RandomMatrices")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; fi

0 commit comments

Comments
 (0)