Skip to content

Commit

Permalink
[CI] Run tests also on Alpine Linux (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored May 8, 2021
1 parent 16ea9fe commit dd045e0
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
28 changes: 15 additions & 13 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
local Pipeline(os, arch, version) = {
local Pipeline(os, arch, version, alpine=false) = {
kind: "pipeline",
name: os+" - "+arch+" - Julia "+version,
name: os+" - "+arch+" - Julia "+version+(if alpine then " (Alpine)" else ""),
platform: {
os: os,
arch: arch
os: os,
arch: arch
},
steps: [
{
name: "build",
image: "julia:"+version,
commands: [
"julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
]
}
{
name: "Run tests",
image: "julia:"+version+(if alpine then "-alpine" else ""),
commands: [
"julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'",
"julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'",
"julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"
]
}
],
trigger: {
branch: ["master"]
Expand All @@ -23,6 +25,6 @@ local Pipeline(os, arch, version) = {
Pipeline("linux", "arm", "1.3"),
Pipeline("linux", "arm", "1.4.1"),
Pipeline("linux", "arm64", "1.3"),
Pipeline("linux", "arm64", "1.4"),
Pipeline("linux", "arm64", "1.5")
Pipeline("linux", "arm64", "1.6"),
Pipeline("linux", "amd64", "1.6", true),
]
40 changes: 25 additions & 15 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ platform:
arch: arm

steps:
- name: build
- name: Run tests
image: julia:1.3
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"

trigger:
branch:
Expand All @@ -25,10 +27,12 @@ platform:
arch: arm

steps:
- name: build
- name: Run tests
image: julia:1.4.1
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"

trigger:
branch:
Expand All @@ -43,46 +47,52 @@ platform:
arch: arm64

steps:
- name: build
- name: Run tests
image: julia:1.3
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"

trigger:
branch:
- master

---
kind: pipeline
name: linux - arm64 - Julia 1.4
name: linux - arm64 - Julia 1.6

platform:
os: linux
arch: arm64

steps:
- name: build
image: julia:1.4
- name: Run tests
image: julia:1.6
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"

trigger:
branch:
- master

---
kind: pipeline
name: linux - arm64 - Julia 1.5
name: linux - amd64 - Julia 1.6 (Alpine)

platform:
os: linux
arch: arm64
arch: amd64

steps:
- name: build
image: julia:1.5
- name: Run tests
image: julia:1.6-alpine
commands:
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true)'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.build()'"
- "julia --project=. --check-bounds=yes --color=yes -e 'using Pkg; Pkg.test(coverage=true)'"

trigger:
branch:
Expand Down

0 comments on commit dd045e0

Please sign in to comment.