Skip to content

Commit dd045e0

Browse files
authored
[CI] Run tests also on Alpine Linux (#32)
1 parent 16ea9fe commit dd045e0

File tree

2 files changed

+40
-28
lines changed

2 files changed

+40
-28
lines changed

.drone.jsonnet

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
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-
}
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+
}
1618
],
1719
trigger: {
1820
branch: ["master"]
@@ -23,6 +25,6 @@ local Pipeline(os, arch, version) = {
2325
Pipeline("linux", "arm", "1.3"),
2426
Pipeline("linux", "arm", "1.4.1"),
2527
Pipeline("linux", "arm64", "1.3"),
26-
Pipeline("linux", "arm64", "1.4"),
27-
Pipeline("linux", "arm64", "1.5")
28+
Pipeline("linux", "arm64", "1.6"),
29+
Pipeline("linux", "amd64", "1.6", true),
2830
]

.drone.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ platform:
77
arch: arm
88

99
steps:
10-
- name: build
10+
- name: Run tests
1111
image: julia:1.3
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)'"
1416

1517
trigger:
1618
branch:
@@ -25,10 +27,12 @@ platform:
2527
arch: arm
2628

2729
steps:
28-
- name: build
30+
- name: Run tests
2931
image: julia:1.4.1
3032
commands:
31-
- "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)'"
3236

3337
trigger:
3438
branch:
@@ -43,46 +47,52 @@ platform:
4347
arch: arm64
4448

4549
steps:
46-
- name: build
50+
- name: Run tests
4751
image: julia:1.3
4852
commands:
49-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
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)'"
5056

5157
trigger:
5258
branch:
5359
- master
5460

5561
---
5662
kind: pipeline
57-
name: linux - arm64 - Julia 1.4
63+
name: linux - arm64 - Julia 1.6
5864

5965
platform:
6066
os: linux
6167
arch: arm64
6268

6369
steps:
64-
- name: build
65-
image: julia:1.4
70+
- name: Run tests
71+
image: julia:1.6
6672
commands:
67-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
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)'"
6876

6977
trigger:
7078
branch:
7179
- master
7280

7381
---
7482
kind: pipeline
75-
name: linux - arm64 - Julia 1.5
83+
name: linux - amd64 - Julia 1.6 (Alpine)
7684

7785
platform:
7886
os: linux
79-
arch: arm64
87+
arch: amd64
8088

8189
steps:
82-
- name: build
83-
image: julia:1.5
90+
- name: Run tests
91+
image: julia:1.6-alpine
8492
commands:
85-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
93+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
94+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
95+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
8696

8797
trigger:
8898
branch:

0 commit comments

Comments
 (0)