From e52acf2c113ee472914c518f22ad433705b5e6a1 Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Tue, 18 Oct 2022 02:12:41 +0000 Subject: [PATCH] ci-restrict (#4) Reviewed-on: https://git.5sigma.io/abacus/abacus/pulls/4 --- .drone.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7ffd2d9..798828a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,11 @@ kind: pipeline name: default - +trigger: + event: + include: + - promote + - pull_request steps: - name: test image: rust:latest @@ -11,6 +15,10 @@ steps: - rustup component add clippy - cargo clippy - cargo test --all + when: + event: + - pull_request + - name: deploy image: rust:latest commands: @@ -32,7 +40,6 @@ steps: - staging - production - --- kind: pipeline name: windows-build @@ -40,11 +47,19 @@ type: exec platform: os: windows arch: amd64 +trigger: + event: + include: + - promote + - pull_request steps: - name: test commands: - rustup default stable - - cargo test + - cargo test + when: + event: + - pull_request - name: deploy commands: - rustup default stable