From 669fec353f7e10d155137c547af52bcce07573de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Thu, 20 Jun 2019 00:53:55 +0100 Subject: [PATCH] Add Drone CI jsonnet script and generate .drone.yml from it --- .drone.jsonnet | 28 +++++++++++++++++ .drone.yml | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 .drone.jsonnet create mode 100644 .drone.yml diff --git a/.drone.jsonnet b/.drone.jsonnet new file mode 100644 index 0000000..a3495d6 --- /dev/null +++ b/.drone.jsonnet @@ -0,0 +1,28 @@ +local Pipeline(os, arch, version) = { + kind: "pipeline", + name: os+" - "+arch+" - Julia v"+version, + platform: { + 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)'" + ] + } + ] +}; + +[ + # Pipeline("linux", "arm", "1.0"), + # Pipeline("linux", "arm", "1.1"), + Pipeline("linux", "arm", "1.2"), + Pipeline("linux", "arm", "nightly"), + Pipeline("linux", "arm64", "1.0"), + Pipeline("linux", "arm64", "1.1"), + Pipeline("linux", "arm64", "1.2"), + Pipeline("linux", "arm64", "nightly") +] diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..40e56cc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,85 @@ +--- +kind: pipeline +name: linux - arm - Julia v1.2 + +platform: + os: linux + arch: arm + +steps: +- name: build + image: julia:1.2 + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +--- +kind: pipeline +name: linux - arm - Julia vnightly + +platform: + os: linux + arch: arm + +steps: +- name: build + image: julia:nightly + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +--- +kind: pipeline +name: linux - arm64 - Julia v1.0 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: julia:1.0 + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +--- +kind: pipeline +name: linux - arm64 - Julia v1.1 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: julia:1.1 + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +--- +kind: pipeline +name: linux - arm64 - Julia v1.2 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: julia:1.2 + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +--- +kind: pipeline +name: linux - arm64 - Julia vnightly + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: julia:nightly + commands: + - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" + +...