Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the NNlib tests more robust #152

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
deps/usr
deps.jl
*.log
Manifest.toml
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ os:
julia:
- 1.0
- 1.1
- 1.2
- 1
- nightly
matrix:
allow_failures:
Expand All @@ -16,7 +18,9 @@ git:
depth: 99999999
env:
# Disable test fuzzing for the moment, as we're a little too slow for Travis
- NNLIB_TEST_FUZZING=false
- GROUP=Core
- NNLIB_TEST_FUZZING=false
- GROUP=Downstream

# Submit to Codecov
after_success:
Expand Down
89 changes: 0 additions & 89 deletions Manifest.toml

This file was deleted.

6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
julia = "1"
BinaryProvider = "0.5"
Requires = "0.5, 1.0"
julia = "1"

[extras]
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
test = ["Pkg", "SafeTestsets", "Test"]
26 changes: 21 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
using NNlib, Test
using SafeTestsets

include("activation.jl")
include("conv.jl")
include("pooling.jl")
include("inference.jl")
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = Sys.iswindows() && haskey(ENV,"APPVEYOR")
const is_TRAVIS = haskey(ENV,"TRAVIS")

@time begin
if GROUP == "All" || GROUP == "Core"
@safetestset "Activation Functions" begin include("activation.jl") end
@safetestset "Convolutions" begin include("conv.jl") end
@safetestset "Pooling Functions" begin include("pooling.jl") end
@safetestset "Inference" begin include("inference.jl") end
end
end

if GROUP == "Downstream"
if is_TRAVIS
using Pkg
Pkg.add("Flux")
end
Pkg.test("Flux")
end