drone.yml -> drone.jsonnet

This commit is contained in:
Noah Santschi-Cooney 2021-01-29 23:08:33 +00:00
parent ff57236283
commit 353ad35bbb
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48
2 changed files with 24 additions and 16 deletions

24
.drone.jsonnet Normal file
View file

@ -0,0 +1,24 @@
local Pipeline(name, os) = {
kind: "pipeline",
name: name,
platform: {
os: os
arch: "amd64"
},
steps: [
{
name: "test",
image: "rust:1.49-slim-buster",
commands: [
"cargo build --verbose --all",
"cargo test --verbose --all"
]
}
]
}
[
Pipeline("Linux", "linux"),
Pipeline("Windows", "windows"),
Pipeline("MacOS", "darwin")
],

View file

@ -1,16 +0,0 @@
kind: pipeline
name: default
steps:
- name: unit test server
image: instrumentisto/rust:nightly-stretch-slim
commands:
- cd server
- cargo test
- name: lint client
image: node:14
commands:
- npm i --unsafe-perm
- npm run compile
- npm run lint