diff --git a/.travis.yml b/.travis.yml index 094088cfdc..9fe03de6f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ os: julia: - 0.6 - 0.7 + - 1.0 - nightly notifications: diff --git a/appveyor.yml b/appveyor.yml index c9e82b04e7..3847a077db 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,7 @@ environment: matrix: - julia_version: 0.6 - julia_version: 0.7 + - julia_version: 1.0 - julia_version: latest platform: diff --git a/test/examples/src/lib/functions.md b/test/examples/src/lib/functions.md index b1c08134ff..e3eba1555e 100644 --- a/test/examples/src/lib/functions.md +++ b/test/examples/src/lib/functions.md @@ -122,7 +122,7 @@ b = ans ```@repl using Compat.Random # hide -srand(1); # hide +@static if VERSION < v"1.0.0-" srand(1) else Random.seed!(1) end; # hide nothing rand() a = 1 diff --git a/test/examples/src/man/tutorial.md b/test/examples/src/man/tutorial.md index a88f00964a..ed9330f2cd 100644 --- a/test/examples/src/man/tutorial.md +++ b/test/examples/src/man/tutorial.md @@ -40,7 +40,11 @@ DocTestSetup = quote using Documenter using Compat.Random - srand(1) + @static if VERSION < v"1.0.0-" + srand(1) + else + Random.seed!(1) + end end ```