From 8eff6469549445b15ce94ea0158e6a68c16ba18e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 7 Feb 2022 06:13:37 +0200 Subject: [PATCH] Add .drone.jsonnnet --- .drone.jsonnet | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .drone.jsonnet diff --git a/.drone.jsonnet b/.drone.jsonnet new file mode 100644 index 0000000..d2726fa --- /dev/null +++ b/.drone.jsonnet @@ -0,0 +1,51 @@ +# Copyright 2022 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# https://www.boost.org/LICENSE_1_0.txt + +local triggers = +{ + branch: [ "master", "develop", "feature/*" ] +}; + +local linux_pipeline(name, image, environment, arch = "amd64", sources = "", packages = "") = +{ + name: name, + kind: "pipeline", + type: "docker", + trigger: triggers, + platform: + { + os: "linux", + arch: arch + }, + steps: + [ + { + "name": "everything", + "image": image, + "environment": environment, + "commands": + [ + "uname -a", + if sources != "" then "apt-add-repository " + sources else "", + if packages != "" then "apt-get install " + packages else "", + ] + } + ] +}; + +local macos_pipeline = +{ +}; + +local windows_pipeline = +{ +}; + +[ + linux_pipeline( + "Linux 20.04 GCC 9", + "cppalliance/droneubuntu2004:1", + { TOOLSET: 'gcc', COMPILER: 'g++', CXXSTD: '03,11,14,17,2a', ADDRMD: '32,64' } + ), +]