-
Notifications
You must be signed in to change notification settings - Fork 455
/
watchdog.yaml
43 lines (41 loc) · 1.77 KB
/
watchdog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
trigger: none
pr:
branches:
include:
- master
- release/*
jobs:
################################################################################
- job: check_run_pipeline
################################################################################
displayName: Check pipeline preconditions (changes ARE in builds or watchdog)
pool:
vmImage: "ubuntu-18.04"
steps:
- bash: |
git log -m -1 --name-only --first-parent --pretty="" | egrep -i '^(builds|edge-hub/watchdog)'
if [[ $? == 0 ]]; then
echo "Detected changes inside builds or edgehub folders"
echo "##vso[task.setvariable variable=RUN_PIPELINE;isOutput=true]TRUE"
fi
displayName: Check changes in sources
name: check_files
################################################################################
- job: linux_amd64
################################################################################
displayName: Linux amd64 checkin gate
dependsOn: check_run_pipeline
condition: eq(dependencies.check_run_pipeline.outputs['check_files.RUN_PIPELINE'], 'true')
pool:
vmImage: "ubuntu-18.04"
steps:
- script: echo "##vso[task.setvariable variable=RUST_BACKTRACE;]1"
displayName: Set env variables
- bash: scripts/linux/generic-rust/install.sh --project-root "edge-hub/watchdog"
displayName: Install Rust
- bash: scripts/linux/generic-rust/build.sh --project-root "edge-hub/watchdog" --packages "watchdog"
displayName: Build
- bash: scripts/linux/generic-rust/format.sh --project-root "edge-hub/watchdog"
displayName: Format Code
- bash: scripts/linux/generic-rust/clippy.sh --project-root "edge-hub/watchdog"
displayName: Clippy