Skip to content

Commit

Permalink
Use --project
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion authored Feb 1, 2022
1 parent a8f5161 commit 1f3e9e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function instantiate_script(mod; org, name=string(nameof(mod)), devbranch="maste
@info "Run examples with $name version $tag_nobuild"
return """
using Pkg
Pkg.activate(ARGS[1])
Pkg.add(PackageSpec(; name="$name", version="$version"))
Pkg.instantiate()
"""
Expand All @@ -51,7 +50,6 @@ Pkg.instantiate()
@info "Run examples with $name commit $sha"
return """
using Pkg
Pkg.activate(ARGS[1])
Pkg.add(PackageSpec(; name="$name", rev="$sha"))
Pkg.instantiate()
"""
Expand All @@ -65,7 +63,6 @@ Pkg.instantiate()
@info "Run examples with $name, local path $pkgdir_mod"
return """
using Pkg
Pkg.activate(ARGS[1])
Pkg.develop(PackageSpec(; path="$pkgdir_mod"))
Pkg.instantiate()
"""
Expand All @@ -76,7 +73,7 @@ end
examples = filter!(isdir, readdir(joinpath(@__DIR__, "..", "examples"); join=true))
let script = instantiate_script(ApproximateGPs; org="JuliaGaussianProcesses")
for example in examples
if !success(`$(Base.julia_cmd()) -e $script $example`)
if !success(`$(Base.julia_cmd()) --project=$example -e $script`)
error(
"project environment of example ",
basename(example),
Expand Down

0 comments on commit 1f3e9e0

Please sign in to comment.