Skip to content

Commit

Permalink
modernize travis.yml, fix build
Browse files Browse the repository at this point in the history
- modernize travis.yml
- disable Logging
- provide empty `@threads` macro on Julia v0.4
  • Loading branch information
tanmaykm committed Jan 25, 2016
1 parent c6422cb commit 9aec9bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
27 changes: 12 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
language: cpp
compiler:
- clang
# Documentation: http://docs.travis-ci.com/user/languages/julia/
language: julia
os:
- linux
- osx
julia:
- release
- nightly
notifications:
email: false
env:
matrix:
- JULIAVERSION="juliareleases"
- 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
script:
- julia -e 'Pkg.init(); run(`ln -s $(pwd()) $(Pkg.dir("JuliaRecSys"))`); Pkg.pin("JuliaRecSys"); Pkg.resolve()'
- julia -e 'using JuliaRecSys; @assert isdefined(:JuliaRecSys); @assert typeof(JuliaRecSys) === Module'
# uncomment the following lines to override the default test script
#script:
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.clone(pwd()); Pkg.build("RecSys"); Pkg.test("RecSys"; coverage=true)'
13 changes: 8 additions & 5 deletions src/RecSys.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ if (Base.VERSION >= v"0.5.0-")
using Base.Threads
type ParThread <: Parallelism end
export ParThread
else
macro threads(x)
end
end

include("input.jl")
Expand All @@ -39,10 +42,10 @@ include("als-wr.jl")
include("utils.jl")

# enable logging only during debugging
using Logging
#const logger = Logging.configure(filename="recsys.log", level=DEBUG)
const logger = Logging.configure(level=DEBUG)
logmsg(s) = debug(s)
#logmsg(s) = nothing
#using Logging
##const logger = Logging.configure(filename="recsys.log", level=DEBUG)
#const logger = Logging.configure(level=DEBUG)
#logmsg(s) = debug(s)
logmsg(s) = nothing

end

0 comments on commit 9aec9bd

Please sign in to comment.