Skip to content
Merged
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
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: julia

julia:
- 1.0
- 1.2
Expand All @@ -7,17 +8,46 @@ julia:
matrix:
allow_failures:
- julia: nightly
- env: ALLOWFAILURES=1

notifications:
email: false

sudo: false

jobs:
include:
# These tests need to be run in a process where bounds checking is not explicitly enabled
# (like they are with Pkg.test)
- stage: test
script:
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
julia: 1.0
env: ALLOWFAILURES=1

- stage: test
script:
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
julia: 1.3
env: ALLOWFAILURES=1

- stage: test
script:
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
julia: nightly
env: ALLOWFAILURES=1


- stage: "Documentation"
julia: 1.2
os: linux
script:
- julia --color=yes --project=docs/ -e 'using Pkg; Pkg.instantiate()'
- julia --color=yes --project=docs/ docs/make.jl
after_success: skip

after_success:
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
2 changes: 1 addition & 1 deletion test/PartialsTest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ end

io = IOBuffer()
show(io, MIME("text/plain"), Partials((1, 2, 3)))
@test String(take!(io)) == "3-element ForwardDiff.Partials{3,Int64}:\n 1\n 2\n 3"
@test String(take!(io)) == "3-element ForwardDiff.Partials{3,$Int}:\n 1\n 2\n 3"

end # module
8 changes: 0 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,3 @@ println("done (took $t seconds).")
println("Testing miscellaneous functionality...")
t = @elapsed include("MiscTest.jl")
println("done (took $t seconds).")

# These tests need to be run in a process where bounds checking is not explicitly enabled
# (like they are with Pkg.test)
println("Testing SIMD vectorization...")
project = Base.active_project()
simdfile = joinpath(@__DIR__, "SIMDTest.jl")
t = @elapsed run(`$(Base.julia_cmd()) --check-bounds=no --code-coverage=none -O2 --project=$project $simdfile`)
println("done (took $t seconds).")