Skip to content

Commit 53fe689

Browse files
authored
Run CI with Drone also on Alpine Linux (#190)
1 parent f8ac4aa commit 53fe689

File tree

2 files changed

+36
-14
lines changed

2 files changed

+36
-14
lines changed

.drone.jsonnet

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
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.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.test(coverage=true)'"
15+
]
16+
}
1617
],
1718
trigger: {
1819
branch: ["master"]
@@ -22,5 +23,6 @@ local Pipeline(os, arch, version) = {
2223
[
2324
# Commenting this out because we don't have an official armv7l build yet
2425
#Pipeline("linux", "arm", "1.6"),
25-
Pipeline("linux", "arm64", "1.6")
26+
Pipeline("linux", "arm64", "1.6"),
27+
Pipeline("linux", "amd64", "1.6", true),
2628
]

.drone.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,30 @@ platform:
77
arch: arm64
88

99
steps:
10-
- name: build
10+
- name: Run tests
1111
image: julia:1.6
1212
commands:
13-
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; 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.test(coverage=true)'"
15+
16+
trigger:
17+
branch:
18+
- master
19+
20+
---
21+
kind: pipeline
22+
name: linux - amd64 - Julia 1.6 (Alpine)
23+
24+
platform:
25+
os: linux
26+
arch: amd64
27+
28+
steps:
29+
- name: Run tests
30+
image: julia:1.6-alpine
31+
commands:
32+
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
33+
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
1434

1535
trigger:
1636
branch:

0 commit comments

Comments
 (0)