diff --git a/test/runtests.jl b/test/runtests.jl index 3f44dab..f809dd9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -4,8 +4,14 @@ using Documenter @testset "Cosmology" begin - DocMeta.setdocmeta!(Cosmology, :DocTestSetup, :(using Cosmology); recursive = true) - doctest(Cosmology) + # Doctest is good for CI, but has variation in system to system. For now, + # only run on supported systems as a measure that the docs are reasonably + # accurate. + doctest_conds = Bool[Sys.isunix(), Sys.ARCH == :x86_64] + if all(doctest_conds) + DocMeta.setdocmeta!(Cosmology, :DocTestSetup, :(using Cosmology); recursive = true) + doctest(Cosmology) + end # values from http://icosmos.co.uk/