Skip to content

Commit ebec214

Browse files
committed
Trying without dep
1 parent 5f5061a commit ebec214

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ jobs:
4747
Pkg.instantiate()'
4848
- julia --project=docs/ docs/make.jl
4949
after_success: skip
50+
51+
- stage: "IIF Driver Tests"
52+
julia: 1.2
53+
os: linux
54+
script:
55+
- julia -e 'import Pkg; Pkg.add("IncrementalInference"); Pkg.test("DistributedFactorGraphs")'
56+
after_success: skip

Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ MetaGraphs = "≥ 0.6.4"
2525
Reexport = "≥ 0.2"
2626
Requires = "≥ 0.5"
2727
julia = "0.7, 1"
28-
IncrementalInference = "0.7.7"
2928

3029
[extras]
3130
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

test/runtests.jl

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ using Test
22
using GraphPlot # For plotting tests
33
using Neo4j
44
using DistributedFactorGraphs
5-
using IncrementalInference
5+
using Pkg
66

77
# Instantiate the APIs that you would like to test here
88
# Can do duplicates with different parameters.
@@ -27,25 +27,34 @@ for api in apis
2727
end
2828
end
2929

30-
apis = [
31-
GraphsDFG{NoSolverParams}(),
32-
LightDFG{NoSolverParams}(),
33-
# MetaGraphsDFG{NoSolverParams}(),
34-
# SymbolDFG{NoSolverParams}(),
35-
# CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
36-
# "testUser", "testRobot", "testSession",
37-
# nothing,
38-
# nothing,
39-
# IncrementalInference.decodePackedType,
40-
# IncrementalInference.rebuildFactorMetadata!,
41-
# solverParams=SolverParams())
42-
]
43-
for api in apis
44-
@testset "Testing Driver: $(typeof(api))" begin
45-
@info "Testing Driver: $(api)"
46-
global dfg = deepcopy(api)
47-
include("iifInterfaceTests.jl")
30+
if haskey(Pkg.installed(), "IncrementalInference")
31+
@info "------------------------------------------------------------------------"
32+
@info "These tests are using IncrementalInference to do additional driver tests"
33+
@info "------------------------------------------------------------------------"
34+
35+
using IncrementalInference
36+
apis = [
37+
GraphsDFG{NoSolverParams}(),
38+
LightDFG{NoSolverParams}(),
39+
# MetaGraphsDFG{NoSolverParams}(),
40+
# SymbolDFG{NoSolverParams}(),
41+
# CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
42+
# "testUser", "testRobot", "testSession",
43+
# nothing,
44+
# nothing,
45+
# IncrementalInference.decodePackedType,
46+
# IncrementalInference.rebuildFactorMetadata!,
47+
# solverParams=SolverParams())
48+
]
49+
for api in apis
50+
@testset "Testing Driver: $(typeof(api))" begin
51+
@info "Testing Driver: $(api)"
52+
global dfg = deepcopy(api)
53+
include("iifInterfaceTests.jl")
54+
end
4855
end
56+
else
57+
@warn "Skipping IncrementalInference driver tests"
4958
end
5059

5160
# Test that we don't export LightDFG and MetaGraphsDFG

0 commit comments

Comments
 (0)