Skip to content

Commit

Permalink
fix extension versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsipher committed Mar 14, 2024
1 parent 06a0b4f commit 3786845
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import DisjunctiveProgramming as DP
using DisjunctiveProgramming
using Test

import Pkg
Pkg.add(url = "https://github.com/infiniteopt/InfiniteOpt.jl", rev = "master")

include("utilities.jl")

# RUN ALL THE TESTS
Expand All @@ -23,4 +20,9 @@ include("constraints/fallback.jl")
include("constraints/disjunction.jl")
include("print.jl")
include("solve.jl")
include("extensions/InfiniteDisjunctiveProgramming.jl")

if Base.VERSION >= v"1.9" # extensions require Julia v1.9+
import Pkg
Pkg.add(url = "https://github.com/infiniteopt/InfiniteOpt.jl", rev = "master")
include("extensions/InfiniteDisjunctiveProgramming.jl")
end

0 comments on commit 3786845

Please sign in to comment.