Skip to content

Commit

Permalink
Use dirname(@__FILE__) instead of Pkg.dir
Browse files Browse the repository at this point in the history
This allows installing the package elsewhere.

Modernize Travis
  • Loading branch information
tkelman committed May 23, 2017
1 parent d534e1b commit b834ebc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
language: cpp
compiler:
- clang
language: julia
julia:
- 0.4
- 0.5
- nightly
notifications:
email: false
env:
matrix:
- 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 -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("SuffixArrays")'
#script: # use the default script which does the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("SuffixArrays")'
1 change: 1 addition & 0 deletions REQUIRE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
julia 0.4
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ function walkdir(dir,files)
return unique(files)
end

files = walkdir(Pkg.dir("SuffixArrays"),{})
test_suffix(files)
files = walkdir(dirname(dirname(@__FILE__)),{})
test_suffix(files)

0 comments on commit b834ebc

Please sign in to comment.