Skip to content

Commit 1657776

Browse files
committed
Modernise Travis test and REQUIRE
1 parent a3785b1 commit 1657776

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
language: cpp
22
compiler:
3-
- clang
3+
- clang
44
notifications:
5-
email: false
5+
email: false
66
env:
7-
matrix:
87
- JULIAVERSION="juliareleases"
98
- JULIAVERSION="julianightlies"
109
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
10+
- sudo add-apt-repository ppa:staticfloat/julia-deps -y
11+
- sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y
12+
- sudo apt-get update -qq -y
13+
- sudo apt-get install libpcre3-dev julia -y
14+
- git config --global user.name "Travis User"
15+
- git config --global user.email "[email protected]"
16+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
1517
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
18+
- julia -e 'Pkg.init(); Pkg.clone(pwd())'
19+
- julia -e 'Pkg.test("RandomMatrices", coverage=true)'
1920
after_success:
20-
- if [ $JULIAVERSION = "julianightlies" ]; then julia -e 'cd(Pkg.dir("RandomMatrices")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'; fi
21+
- julia -e 'cd(Pkg.dir("RandomMatrices")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
julia 0.3-
1+
julia 0.3
22
Catalan
33
Distributions
44
ODE

0 commit comments

Comments
 (0)