Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Check-out master branches as part of Pkg.build.
Browse files Browse the repository at this point in the history
That way we can have working documentation outside of runtests.jl
  • Loading branch information
maleadt committed Dec 11, 2018
1 parent 3855b35 commit 13adc73
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Expand Up @@ -13,14 +13,14 @@ GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[extras]
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "FFTW", "Pkg"]
test = ["Test", "FFTW"]
9 changes: 9 additions & 0 deletions deps/build.jl
Expand Up @@ -21,6 +21,15 @@ end

## main

# development often happens in lockstep with other packages,
# so check-out the master branch of those packages.
using Pkg
if haskey(ENV, "GITLAB_CI")
for package in ("CUDAapi", "GPUArrays", "CUDAnative", "NNlib")
Pkg.add(PackageSpec(name=package, rev="master"))
end
end

config_path = joinpath(@__DIR__, "ext.jl")
const previous_config_path = config_path * ".bak"

Expand Down
9 changes: 0 additions & 9 deletions test/runtests.jl
@@ -1,12 +1,3 @@
# development often happens in lockstep with other packages,
# so check-out the master branch of those packages.
using Pkg
if haskey(ENV, "GITLAB_CI")
for package in ("CUDAapi", "GPUArrays", "CUDAnative", "NNlib")
Pkg.add(PackageSpec(name=package, rev="master"))
end
end

using Test

include("util.jl")
Expand Down

0 comments on commit 13adc73

Please sign in to comment.