Skip to content

Commit 734f242

Browse files
authored
Update Drone CI setup (#326)
* run only on `master` branch, to avoid duplicate builds * run aarch64 also with Julia v1.6 * run tests also on Alpine Linux and increase tolerance for `expint` test to 1e-13 to make tests pass on this platform
1 parent f67c0f6 commit 734f242

File tree

3 files changed

+81
-21
lines changed

3 files changed

+81
-21
lines changed

.drone.jsonnet

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1-
local Pipeline(os, arch, version) = {
1+
local Pipeline(os, arch, version, alpine=false) = {
22
kind: "pipeline",
3-
name: os+" - "+arch+" - Julia "+version,
3+
name: os+" - "+arch+" - Julia "+version+(if alpine then " (Alpine)" else ""),
44
platform: {
5-
os: os,
6-
arch: arch
5+
os: os,
6+
arch: arch
77
},
88
steps: [
9-
{
10-
name: "build",
11-
image: "julia:"+version,
12-
commands: [
13-
"julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
14-
]
15-
}
16-
]
9+
{
10+
name: "Run tests",
11+
image: "julia:"+version+(if alpine then "-alpine" else ""),
12+
commands: [
13+
"julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'",
14+
"julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'",
15+
"julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
16+
]
17+
}
18+
],
19+
trigger: {
20+
branch: ["master"]
21+
}
1722
};
1823

1924
[
20-
Pipeline("linux", "arm", "1.3"),
21-
Pipeline("linux", "arm64", "1.3")
25+
Pipeline("linux", "arm", "1.3.1"),
26+
# Pipeline("linux", "arm", "1.6.1"),
27+
Pipeline("linux", "arm64", "1.3"),
28+
Pipeline("linux", "arm64", "1.6"),
29+
Pipeline("linux", "amd64", "1.6", true)
2230
]

.drone.yml

Lines changed: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
---
22
kind: pipeline
3-
name: linux - arm - Julia 1.3
3+
name: linux - arm - Julia 1.3.1
44

55
platform:
66
os: linux
77
arch: arm
88

99
steps:
10-
- name: build
11-
image: julia:1.3
10+
- name: Run tests
11+
image: julia:1.3.1
1212
commands:
13-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
13+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
14+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
15+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
16+
17+
trigger:
18+
branch:
19+
- master
1420

1521
---
1622
kind: pipeline
@@ -21,9 +27,55 @@ platform:
2127
arch: arm64
2228

2329
steps:
24-
- name: build
30+
- name: Run tests
2531
image: julia:1.3
2632
commands:
27-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
33+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
34+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
35+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
36+
37+
trigger:
38+
branch:
39+
- master
40+
41+
---
42+
kind: pipeline
43+
name: linux - arm64 - Julia 1.6
44+
45+
platform:
46+
os: linux
47+
arch: arm64
48+
49+
steps:
50+
- name: Run tests
51+
image: julia:1.6
52+
commands:
53+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
54+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
55+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
56+
57+
trigger:
58+
branch:
59+
- master
60+
61+
---
62+
kind: pipeline
63+
name: linux - amd64 - Julia 1.6 (Alpine)
64+
65+
platform:
66+
os: linux
67+
arch: amd64
68+
69+
steps:
70+
- name: Run tests
71+
image: julia:1.6-alpine
72+
commands:
73+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
74+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
75+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
76+
77+
trigger:
78+
branch:
79+
- master
2880

2981
...

test/expint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ using Base.MathConstants
201201
@test expint(-2, -2.2) -2.0680909972407264331884989 rtol=1e-14
202202
@test expint(-2.2, 3.2) 0.024950173497409329191241353395358 rtol=1e-14
203203
@test expint(+2.2, 3.2) 0.008044603700773423319087602010 rtol=1e-12
204-
@test expint(3.2, 1.3) 0.070147692224611216675759479422283315452559216337905 rtol=1e-14
204+
@test expint(3.2, 1.3) 0.070147692224611216675759479422283315452559216337905 rtol=1e-13
205205
@test expint(-20, -1000) === -Inf
206206
end
207207

0 commit comments

Comments
 (0)