Errors in Travis-CI for building a new package

My github repo link is: https://github.com/r0cketr1kky/Dogsay.jl
I have more than 40 builds and I still can’t figure out my error.
It would be great if someone could assist me in packaging my code for Julia.

The Errors I face are :

ERROR: LoadError: syntax: invalid escape sequence

200Stacktrace:

201 [1] include at ./boot.jl:317 [inlined]

202 [2] include_relative(::Module, ::String) at ./loading.jl:1038

203 [3] include(::Module, ::String) at ./sysimg.jl:29

204 [4] top-level scope at none:2

205 [5] eval at ./boot.jl:319 [inlined]

206 [6] eval(::Expr) at ./client.jl:399

207 [7] top-level scope at ./none:3

208in expression starting at /home/travis/build/r0cketr1kky/Dogsay.jl/src/Dogsay.jl:6

209ERROR: LoadError: Failed to precompile Dogsay [e4b88ea9-8232-438f-beaa-39e5d53fd5fe] to /home/travis/.julia/compiled/v0.7/Dogsay/JkdZf.ji.

210Stacktrace:

211 [1] error(::String) at ./error.jl:33

212 [2] macro expansion at ./logging.jl:313 [inlined]

213 [3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1185

214 [4] _require(::Base.PkgId) at ./logging.jl:311

215 [5] require(::Base.PkgId) at ./loading.jl:852

216 [6] macro expansion at ./logging.jl:311 [inlined]

217 [7] require(::Module, ::Symbol) at ./loading.jl:834

218 [8] include at ./boot.jl:317 [inlined]

219 [9] include_relative(::Module, ::String) at ./loading.jl:1038

220 [10] include(::Module, ::String) at ./sysimg.jl:29

221 [11] include(::String) at ./client.jl:398

222 [12] top-level scope at none:0

223in expression starting at /home/travis/build/r0cketr1kky/Dogsay.jl/test/runtests.jl:1

224ERROR: Package Dogsay errored during testing

225Stacktrace:

226 [1] pkgerror(::String, ::Vararg{String,N} where N) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Types.jl:120

229 [2] macro expansion at ./logging.jl:313 [inlined]

230 [3] #test#61(::Bool, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/Operations.jl:1283

231 [4] #test at ./none:0 [inlined]

232 [5] #test#44(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:256

233 [6] #test at ./none:0 [inlined]

234 [7] #test#43 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:239 [inlined]

235 [8] #test at ./none:0 [inlined]

236 [9] #test#40(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:coverage,),Tuple{Bool}}}, ::Function) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v0.7/Pkg/src/API.jl:236

237 [10] (::getfield(Pkg.API, Symbol(“#kw##test”)))(::NamedTuple{(:coverage,),Tuple{Bool}}, ::typeof(Pkg.API.test)) at ./none:0

238 [11] top-level scope at none:1

239The command “julia --check-bounds=yes --color=yes -e “if VERSION < v"0.7.0-DEV.5183"; Pkg.test("${JL_PKG}", coverage=true); else using Pkg; Pkg.test(coverage=true); end”” failed and exited with 1 during .

227

228Your build has been stopped.

My understanding is that you have wrong quote characters here https://github.com/r0cketr1kky/Dogsay.jl/blob/d298b875ee8da74647341a187f28f0408a117c42/src/Dogsay.jl#L6

When you use "\" character you will take extra effort like in any programming languages. Either use raw string r"\_/" or escape the backslash "\\_/".

2 Likes

Thanks a lot @Tero_Frondelius !! Will check it out.