Skip to content

Commit c6830f9

Browse files
authored
modernize some CI and docs (#416)
1 parent f41bcbd commit c6830f9

File tree

7 files changed

+212
-29
lines changed

7 files changed

+212
-29
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.jl.*.cov
33
*.jl.mem
44
*.DS_Store
5-
docs/build/
6-
docs/site/
7-
benchmark_data/
5+
/docs/build/
6+
/docs/site/
7+
/benchmark_data/
8+
/Manifest.toml

.travis.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: julia
22
julia:
3-
- 0.7
43
- 1.0
54
- 1.2
65
- 1.3
@@ -11,15 +10,14 @@ matrix:
1110
notifications:
1211
email: false
1312
sudo: false
14-
script:
15-
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
16-
- julia --project -e 'using Pkg;
17-
Pkg.update();
18-
Pkg.instantiate()'
19-
- julia --project -e 'using Pkg;
20-
Pkg.test("ForwardDiff"; coverage=true)'
21-
- julia --project --color=yes -O3 -e 'include("test/SIMDTest.jl")'
13+
jobs:
14+
include:
15+
- stage: "Documentation"
16+
julia: 1.2
17+
os: linux
18+
script:
19+
- julia --color=yes --project=docs/ -e 'using Pkg; Pkg.instantiate()'
20+
- julia --color=yes --project=docs/ docs/make.jl
21+
after_success: skip
2222
after_success:
23-
- julia --color=yes -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
24-
- julia --color=yes -e 'using Pkg; ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps)'
25-
- julia --color=yes -e 'include("docs/make.jl")'
23+
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ DiffTests = "0.0.1, 0.1"
2020
NaNMath = "0.2.2, 0.3"
2121
SpecialFunctions = "0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8"
2222
StaticArrays = "0.8.3, 0.9, 0.10, 0.11"
23-
julia = "0.7, 1"
23+
julia = "1"
2424

2525
[extras]
2626
Calculus = "49dc2e85-a5d0-5ad3-a950-438e2897f1b9"
2727
DiffTests = "de460e47-3fe3-5279-bb4a-814414816d5d"
28+
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
2829
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2930
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
3031
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3132

3233
[targets]
33-
test = ["Calculus", "DiffTests", "LinearAlgebra", "SparseArrays", "Test"]
34+
test = ["Calculus", "DiffTests", "LinearAlgebra", "SparseArrays", "Test", "InteractiveUtils"]

docs/Manifest.toml

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
[[Base64]]
4+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
5+
6+
[[BinDeps]]
7+
deps = ["Compat", "Libdl", "SHA", "URIParser"]
8+
git-tree-sha1 = "12093ca6cdd0ee547c39b1870e0c9c3f154d9ca9"
9+
uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
10+
version = "0.8.10"
11+
12+
[[BinaryProvider]]
13+
deps = ["Libdl", "SHA"]
14+
git-tree-sha1 = "29995a7b317bbd06be147e1974a3541ce2502dca"
15+
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
16+
version = "0.5.7"
17+
18+
[[CommonSubexpressions]]
19+
deps = ["Test"]
20+
git-tree-sha1 = "efdaf19ab11c7889334ca247ff4c9f7c322817b0"
21+
uuid = "bbf7d656-a473-5ed7-a52c-81e309532950"
22+
version = "0.2.0"
23+
24+
[[Compat]]
25+
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
26+
git-tree-sha1 = "ed2c4abadf84c53d9e58510b5fc48912c2336fbb"
27+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
28+
version = "2.2.0"
29+
30+
[[Dates]]
31+
deps = ["Printf"]
32+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
33+
34+
[[DelimitedFiles]]
35+
deps = ["Mmap"]
36+
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
37+
38+
[[DiffResults]]
39+
deps = ["Compat", "StaticArrays"]
40+
git-tree-sha1 = "34a4a1e8be7bc99bc9c611b895b5baf37a80584c"
41+
uuid = "163ba53b-c6d8-5494-b064-1a9d43ac40c5"
42+
version = "0.0.4"
43+
44+
[[DiffRules]]
45+
deps = ["Random", "Test"]
46+
git-tree-sha1 = "dc0869fb2f5b23466b32ea799bd82c76480167f7"
47+
uuid = "b552c78f-8df3-52c6-915a-8e097449b14b"
48+
version = "0.0.10"
49+
50+
[[Distributed]]
51+
deps = ["Random", "Serialization", "Sockets"]
52+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
53+
54+
[[DocStringExtensions]]
55+
deps = ["LibGit2", "Markdown", "Pkg", "Test"]
56+
git-tree-sha1 = "88bb0edb352b16608036faadcc071adda068582a"
57+
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
58+
version = "0.8.1"
59+
60+
[[Documenter]]
61+
deps = ["Base64", "Dates", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
62+
git-tree-sha1 = "ac9736f359294bd60f75a4c4c1f2da0e98f6b71f"
63+
repo-rev = "master"
64+
repo-url = "https://github.com/JuliaDocs/Documenter.jl.git"
65+
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
66+
version = "0.24.0-DEV"
67+
68+
[[ForwardDiff]]
69+
deps = ["CommonSubexpressions", "DiffResults", "DiffRules", "Documenter", "NaNMath", "Random", "SpecialFunctions", "StaticArrays"]
70+
path = ".."
71+
uuid = "f6369f11-7733-5829-9624-2563aa707210"
72+
version = "0.10.4"
73+
74+
[[InteractiveUtils]]
75+
deps = ["Markdown"]
76+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
77+
78+
[[JSON]]
79+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
80+
git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
81+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
82+
version = "0.21.0"
83+
84+
[[LibGit2]]
85+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
86+
87+
[[Libdl]]
88+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
89+
90+
[[LinearAlgebra]]
91+
deps = ["Libdl"]
92+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
93+
94+
[[Logging]]
95+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
96+
97+
[[Markdown]]
98+
deps = ["Base64"]
99+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
100+
101+
[[Mmap]]
102+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
103+
104+
[[NaNMath]]
105+
deps = ["Compat"]
106+
git-tree-sha1 = "ce3b85e484a5d4c71dd5316215069311135fa9f2"
107+
uuid = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
108+
version = "0.3.2"
109+
110+
[[Parsers]]
111+
deps = ["Dates", "Test"]
112+
git-tree-sha1 = "ef0af6c8601db18c282d092ccbd2f01f3f0cd70b"
113+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
114+
version = "0.3.7"
115+
116+
[[Pkg]]
117+
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
118+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
119+
120+
[[Printf]]
121+
deps = ["Unicode"]
122+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
123+
124+
[[REPL]]
125+
deps = ["InteractiveUtils", "Markdown", "Sockets"]
126+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
127+
128+
[[Random]]
129+
deps = ["Serialization"]
130+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
131+
132+
[[SHA]]
133+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
134+
135+
[[Serialization]]
136+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
137+
138+
[[SharedArrays]]
139+
deps = ["Distributed", "Mmap", "Random", "Serialization"]
140+
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
141+
142+
[[Sockets]]
143+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
144+
145+
[[SparseArrays]]
146+
deps = ["LinearAlgebra", "Random"]
147+
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
148+
149+
[[SpecialFunctions]]
150+
deps = ["BinDeps", "BinaryProvider", "Libdl"]
151+
git-tree-sha1 = "3bdd374b6fd78faf0119b8c5d538788dbf910c6e"
152+
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
153+
version = "0.8.0"
154+
155+
[[StaticArrays]]
156+
deps = ["LinearAlgebra", "Random", "Statistics"]
157+
git-tree-sha1 = "1085ffbf5fd48fdba64ef8e902ca429c4e1212d3"
158+
uuid = "90137ffa-7385-5640-81b9-e52037218182"
159+
version = "0.11.1"
160+
161+
[[Statistics]]
162+
deps = ["LinearAlgebra", "SparseArrays"]
163+
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
164+
165+
[[Test]]
166+
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
167+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
168+
169+
[[URIParser]]
170+
deps = ["Test", "Unicode"]
171+
git-tree-sha1 = "6ddf8244220dfda2f17539fa8c9de20d6c575b69"
172+
uuid = "30578b45-9adc-5946-b283-645ec420af67"
173+
version = "0.4.0"
174+
175+
[[UUIDs]]
176+
deps = ["Random", "SHA"]
177+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
178+
179+
[[Unicode]]
180+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"

docs/make.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ using Documenter, ForwardDiff
22

33
makedocs(modules=[ForwardDiff],
44
doctest = false,
5-
format = :html,
65
sitename = "ForwardDiff",
76
pages = ["Introduction" => "index.md",
87
"User Documentation" => [
@@ -14,9 +13,6 @@ makedocs(modules=[ForwardDiff],
1413
"How ForwardDiff Works" => "dev/how_it_works.md",
1514
"How to Contribute" => "dev/contributing.md"]])
1615

17-
deploydocs(repo = "github.com/JuliaDiff/ForwardDiff.jl.git",
18-
osname = "linux",
19-
julia = "0.7",
20-
target = "build",
21-
deps = nothing,
22-
make = nothing)
16+
deploydocs(
17+
repo = "github.com/JuliaDiff/ForwardDiff.jl.git"
18+
)

test/runtests.jl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using ForwardDiff
22

3+
#=
34
println("Testing Partials...")
45
t = @elapsed include("PartialsTest.jl")
56
println("done (took $t seconds).")
@@ -32,8 +33,11 @@ println("Testing miscellaneous functionality...")
3233
t = @elapsed include("MiscTest.jl")
3334
println("done (took $t seconds).")
3435
35-
if Base.JLOptions().opt_level >= 3
36-
println("Testing SIMD vectorization...")
37-
t = @elapsed include("SIMDTest.jl")
38-
println("done (took $t seconds).")
39-
end
36+
# These tests need to be run in a process where bounds checking is not explicitly enabled
37+
# (like they are with Pkg.test)
38+
=#
39+
println("Testing SIMD vectorization...")
40+
project = Base.active_project()
41+
simdfile = joinpath(@__DIR__, "SIMDTest.jl")
42+
t = @elapsed run(`$(Base.julia_cmd()) --check-bounds=no --code-coverage=none -O2 --project=$project $simdfile`)
43+
println("done (took $t seconds).")

0 commit comments

Comments
 (0)