-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into kms/unexport_functions
- Loading branch information
Showing
9 changed files
with
119 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ os: | |
- osx | ||
julia: | ||
- 0.5 | ||
- 0.6 | ||
- nightly | ||
notifications: | ||
email: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
julia 0.5 | ||
Compat 0.7.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
environment: | ||
matrix: | ||
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x86/0.5/julia-0.5-latest-win32.exe" | ||
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.5/julia-0.5-latest-win64.exe" | ||
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x86/julia-latest-win32.exe" | ||
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe" | ||
|
||
branches: | ||
only: | ||
- master | ||
- /release-.*/ | ||
|
||
notifications: | ||
- provider: Email | ||
on_build_success: false | ||
on_build_failure: false | ||
on_build_status_changed: false | ||
|
||
install: | ||
- ps: "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12" | ||
# Download most recent Julia Windows binary | ||
- ps: (new-object net.webclient).DownloadFile( | ||
$env:JULIA_URL, | ||
"C:\projects\julia-binary.exe") | ||
# Run installer silently, output to C:\projects\julia | ||
- C:\projects\julia-binary.exe /S /D=C:\projects\julia | ||
|
||
build_script: | ||
# Need to convert from shallow to complete for Pkg.clone to work | ||
- IF EXIST .git\shallow (git fetch --unshallow) | ||
- C:\projects\julia\bin\julia -e "versioninfo(); | ||
Pkg.clone(pwd(), \"Logging\"); Pkg.build(\"Logging\")" | ||
|
||
test_script: | ||
- C:\projects\julia\bin\julia -e "Pkg.test(\"Logging\")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Ensure that Logging.jl works when loaded with `import` rather than `using` | ||
# since `import` does not bring constants like `DEBUG` into scope: | ||
module InnerModule | ||
|
||
import Logging | ||
@Logging.configure(level=DEBUG) | ||
|
||
using Compat | ||
using Base.Test | ||
|
||
function test_non_global_interpolation(y) | ||
@info("y = $y") | ||
end | ||
|
||
test_non_global_interpolation(5) | ||
|
||
function test_log_macro_common(flags) | ||
for (macroname, isshown) in flags | ||
ex = Expr(:macrocall, Symbol(macroname), "test message") | ||
if isshown | ||
@test ex |> macroexpand != :nothing | ||
else | ||
@test ex |> macroexpand == :nothing | ||
end | ||
end | ||
end | ||
|
||
test_log_macro_common([(:@debug, true), (:@info, true), (:@warn, true), | ||
(:@err, true), (:@critical, true)]) | ||
|
||
@Logging.configure(level=INFO) | ||
test_log_macro_common([(:@debug, false), (:@info, true), (:@warn, true), | ||
(:@err, true), (:@critical, true)]) | ||
|
||
@Logging.configure(level=WARNING) | ||
test_log_macro_common([(:@debug, false), (:@info, false), (:@warn, true), | ||
(:@err, true), (:@critical, true)]) | ||
|
||
@Logging.configure(level=ERROR) | ||
test_log_macro_common([(:@debug, false), (:@info, false), (:@warn, false), | ||
(:@err, true), (:@critical, true)]) | ||
|
||
@Logging.configure(level=CRITICAL) | ||
test_log_macro_common([(:@debug, false), (:@info, false), (:@warn, false), | ||
(:@err, false), (:@critical, true)]) | ||
|
||
@Logging.configure(level=OFF) | ||
test_log_macro_common([(:@debug, false), (:@info, false), (:@warn, false), | ||
(:@err, false), (:@critical, false)]) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include("log_test.jl") | ||
include("macro_test.jl") | ||
include("test_hierarchy.jl") | ||
include("macro_scope_test.jl") |