Skip to content

Commit d99fcfe

Browse files
authored
Install Aqua.jl if necessary during CI (#356)
1 parent 5d9b27c commit d99fcfe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/runtests.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22
using Test, LinearAlgebra, SparseArrays
3+
4+
# Because julia CI doesn't run stdlib tests via `Pkg.test` test deps must be manually installed if missing
5+
if Base.find_package("Aqua") === nothing
6+
@debug "Installing Aqua.jl for SparseArrays.jl tests"
7+
iob = IOBuffer()
8+
try
9+
Pkg.add("Aqua", io=iob) # Needed for custom julia version resolve tests
10+
catch
11+
println(String(take!(iob)))
12+
rethrow()
13+
end
14+
end
15+
316
for file in readlines(joinpath(@__DIR__, "testgroups"))
417
file == "" && continue # skip empty lines
518
include(file * ".jl")

0 commit comments

Comments
 (0)