Skip to content

Commit cb18995

Browse files
authored
Merge pull request #438 from JuliaDiff/an/nosimdtest
Move SIMD tests to a separate job and allow them to fail
2 parents fc69d37 + de71116 commit cb18995

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: julia
2+
23
julia:
34
- 1.0
45
- 1.2
@@ -7,17 +8,46 @@ julia:
78
matrix:
89
allow_failures:
910
- julia: nightly
11+
- env: ALLOWFAILURES=1
12+
1013
notifications:
1114
email: false
15+
1216
sudo: false
17+
1318
jobs:
1419
include:
20+
# These tests need to be run in a process where bounds checking is not explicitly enabled
21+
# (like they are with Pkg.test)
22+
- stage: test
23+
script:
24+
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
25+
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
26+
julia: 1.0
27+
env: ALLOWFAILURES=1
28+
29+
- stage: test
30+
script:
31+
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
32+
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
33+
julia: 1.3
34+
env: ALLOWFAILURES=1
35+
36+
- stage: test
37+
script:
38+
- julia --color=yes --project=. -e 'using Pkg; Pkg.instantiate()'
39+
- julia --color=yes --check-bounds=no --code-coverage=none -O2 --project=. test/SIMDTest.jl
40+
julia: nightly
41+
env: ALLOWFAILURES=1
42+
43+
1544
- stage: "Documentation"
1645
julia: 1.2
1746
os: linux
1847
script:
1948
- julia --color=yes --project=docs/ -e 'using Pkg; Pkg.instantiate()'
2049
- julia --color=yes --project=docs/ docs/make.jl
2150
after_success: skip
51+
2252
after_success:
2353
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

test/PartialsTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,6 @@ end
137137

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

142142
end # module

test/runtests.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,3 @@ println("done (took $t seconds).")
3131
println("Testing miscellaneous functionality...")
3232
t = @elapsed include("MiscTest.jl")
3333
println("done (took $t seconds).")
34-
35-
# These tests need to be run in a process where bounds checking is not explicitly enabled
36-
# (like they are with Pkg.test)
37-
println("Testing SIMD vectorization...")
38-
project = Base.active_project()
39-
simdfile = joinpath(@__DIR__, "SIMDTest.jl")
40-
t = @elapsed run(`$(Base.julia_cmd()) --check-bounds=no --code-coverage=none -O2 --project=$project $simdfile`)
41-
println("done (took $t seconds).")

0 commit comments

Comments
 (0)