Skip to content

Commit

Permalink
use printing every testset to stop travis getting made
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Jan 28, 2020
1 parent 07853df commit df5609b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Expand Up @@ -15,20 +15,14 @@ git:
matrix:
allow_failures:
- julia: nightly

jobs:
include:
include:
- stage: "Documentation"
julia: 1.3
os: linux
script:
- julia --color=yes --project=docs/ docs/make.jl
after_success: skip

script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- travis_wait 30 julia -e 'using Pkg; Pkg.build(); Pkg.test(coverage=true)'

## uncomment and modify the following lines to manually install system packages
#addons:
# apt: # apt-get for linux
Expand Down
1 change: 0 additions & 1 deletion test/gradcheck.jl
Expand Up @@ -24,7 +24,6 @@ function default_fdm(f::F) where F
end

function ngradient(f, xs::AbstractArray...; fdm=default_fdm(f))
println(" ") # make sure TravisCI doesn't time out
return FiniteDifferences.grad(fdm, f, xs...)
end

Expand Down
6 changes: 6 additions & 0 deletions test/runtests.jl
@@ -1,6 +1,12 @@
using Zygote, Test
using Zygote: gradient

# Shadow Test.@testset to always print something so that TravisCI doesn't shut-down for inactivity.
macro testset(expr...)
:(print(" "); Base.@testset $(expr...);)
end


@testset "Zygote" begin

@info "Testing compiler features"
Expand Down

0 comments on commit df5609b

Please sign in to comment.