Skip to content

Commit d140b93

Browse files
authored
Test package on Alpine Linux (#33)
1 parent 5882fdf commit d140b93

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.drone.jsonnet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ local Pipeline(os, arch, version, alpine=false) = {
1010
name: "Run tests",
1111
image: "julia:"+version+(if alpine then "-alpine" else ""),
1212
commands: [
13-
"apt-get update -y",
14-
"apt-get install -y gcc build-essential",
13+
(if alpine then "" else "apt-get update -y"),
14+
(if alpine then "apk add build-base linux-headers" else "apt-get install -y gcc build-essential"),
1515
"julia --project=test --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'",
1616
"julia --project=test --check-bounds=yes --color=yes -e 'using Pkg; Pkg.instantiate()'",
1717
"julia --project=test --check-bounds=yes --color=yes test/runtests.jl"
@@ -25,4 +25,5 @@ local Pipeline(os, arch, version, alpine=false) = {
2525

2626
[
2727
Pipeline("linux", "arm64", "1.6"),
28+
Pipeline("linux", "amd64", "1.6", true),
2829
]

.drone.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,26 @@ trigger:
2020
branch:
2121
- main
2222

23+
---
24+
kind: pipeline
25+
name: linux - amd64 - Julia 1.6 (Alpine)
26+
27+
platform:
28+
os: linux
29+
arch: amd64
30+
31+
steps:
32+
- name: Run tests
33+
image: julia:1.6-alpine
34+
commands:
35+
- ""
36+
- apk add build-base linux-headers
37+
- "julia --project=test --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
38+
- "julia --project=test --check-bounds=yes --color=yes -e 'using Pkg; Pkg.instantiate()'"
39+
- julia --project=test --check-bounds=yes --color=yes test/runtests.jl
40+
41+
trigger:
42+
branch:
43+
- main
44+
2345
...

0 commit comments

Comments
 (0)