parent
9cf41ad6ec
commit
e52acf2c11
19
.drone.yml
19
.drone.yml
|
@ -1,7 +1,11 @@
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default
|
name: default
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- promote
|
||||||
|
- pull_request
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
|
@ -11,6 +15,10 @@ steps:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy
|
- cargo clippy
|
||||||
- cargo test --all
|
- cargo test --all
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
commands:
|
commands:
|
||||||
|
@ -32,7 +40,6 @@ steps:
|
||||||
- staging
|
- staging
|
||||||
- production
|
- production
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: windows-build
|
name: windows-build
|
||||||
|
@ -40,11 +47,19 @@ type: exec
|
||||||
platform:
|
platform:
|
||||||
os: windows
|
os: windows
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
include:
|
||||||
|
- promote
|
||||||
|
- pull_request
|
||||||
steps:
|
steps:
|
||||||
- name: test
|
- name: test
|
||||||
commands:
|
commands:
|
||||||
- rustup default stable
|
- rustup default stable
|
||||||
- cargo test
|
- cargo test
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
- name: deploy
|
- name: deploy
|
||||||
commands:
|
commands:
|
||||||
- rustup default stable
|
- rustup default stable
|
||||||
|
|
Loading…
Reference in New Issue