Skip to content

Commit 48304b7

Browse files
authored
test matrix (#168)
* add Neo4j and GraphsPlot to Documentation stage * setup travis matrix with ENV IIF_TEST, allow failures and update test code * Removed test/Project.toml for savety might cause dependancy problems
1 parent adc4022 commit 48304b7

File tree

3 files changed

+22
-39
lines changed

3 files changed

+22
-39
lines changed

.travis.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,30 @@ julia:
1818
- 1.3
1919
- nightly
2020

21+
env:
22+
- IIF_TEST=false
23+
24+
jobs:
25+
include:
26+
- julia: 1.2
27+
env: IIF_TEST=true
28+
- stage: "Documentation"
29+
julia: 1.0
30+
os: linux
31+
script:
32+
- julia -e 'import Pkg; Pkg.add("Documenter"); Pkg.add("Neo4j"); Pkg.add("GraphPlot")'
33+
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
34+
Pkg.instantiate()'
35+
- julia --project=docs/ docs/make.jl
36+
after_success: skip
37+
2138
notifications:
2239
email: false
2340

2441
matrix:
2542
allow_failures:
26-
- julia: nightly
43+
- julia: nightly
44+
- env: IIF_TEST=true
2745

2846
# Set the password for Neo4j to neo4j:test
2947
before_script:
@@ -32,22 +50,3 @@ before_script:
3250

3351
after_success:
3452
- julia -e 'using Pkg; cd(Pkg.dir("DistributedFactorGraphs")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder()); Coveralls.submit(process_folder())'
35-
36-
jobs:
37-
include:
38-
- stage: "Documentation"
39-
julia: 1.0
40-
os: linux
41-
script:
42-
- julia -e 'import Pkg; Pkg.add("Documenter"); Pkg.add("DataFrames")'
43-
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
44-
Pkg.instantiate()'
45-
- julia --project=docs/ docs/make.jl
46-
after_success: skip
47-
48-
- stage: "IIF Driver Tests"
49-
julia: 1.2
50-
os: linux
51-
script:
52-
- julia -e 'import Pkg; Pkg.add("IncrementalInference"); Pkg.test("DistributedFactorGraphs")'
53-
after_success: skip

test/Project.toml

Lines changed: 0 additions & 18 deletions
This file was deleted.

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ end
4343
end
4444

4545

46-
if haskey(Pkg.installed(), "IncrementalInference")
46+
if get(ENV, "IIF_TEST", "") == "true"
47+
48+
Pkg.add("IncrementalInference")
4749
@info "------------------------------------------------------------------------"
4850
@info "These tests are using IncrementalInference to do additional driver tests"
4951
@info "------------------------------------------------------------------------"

0 commit comments

Comments
 (0)