Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
environment:
matrix:
- julia_version: 1.0
- julia_version: 1
- julia_version: nightly

platform:
- x86 # 32-bit
- x64 # 64-bit

# # Uncomment the following lines to allow failures on nightly julia
# # (tests will run but not make your overall status red)
# matrix:
# allow_failures:
# - julia_version: nightly

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false

install:
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
- echo "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"

test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

# # Uncomment to support code coverage upload. Should only be enabled for packages
# # which would have coverage gaps without running on Windows
# on_success:
# - echo "%JL_CODECOV_SCRIPT%"
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
2 changes: 1 addition & 1 deletion src/CodeTracking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function definition(::Type{String}, method::Method)
lineindex -= 1
line -= 1
end
return src[istart:iend-1], line
return chomp(src[istart:iend-1]), line
end

"""
Expand Down
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ isdefined(Main, :Revise) ? includet("script.jl") : include("script.jl")
@test whereis(trace[3]) === nothing

src, line = definition(String, m)
@test src == """
@test src == chomp("""
function f1(x, y)
# A comment
return x + y
end
"""
""")
@test line == 2

m = first(methods(f2))
Expand Down Expand Up @@ -127,4 +127,4 @@ l = @__LINE__
def, line = definition(String, @which d_34(1, 2))
@test line == l - 3
@test def == "(d_34)(x::T, y::T) where {T<:Number} = x === y"
end
end