-
Notifications
You must be signed in to change notification settings - Fork 455
/
api-proxy.yaml
41 lines (39 loc) · 1.77 KB
/
api-proxy.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
trigger: none
pr:
branches:
include:
- master
- iiot
jobs:
################################################################################
- job: check_run_pipeline
################################################################################
displayName: Check pipeline preconditions (changes ARE in builds or edge-modules/api-proxy-module or mqtt/edgelet-client)
pool:
vmImage: "ubuntu-18.04"
steps:
- bash: |
git log -m -1 --name-only --first-parent --pretty="" | egrep -i '^(builds|edge-modules/api-proxy-module|mqtt/edgelet-client)'
if [[ $? == 0 ]]; then
echo "Detected changes inside builds or edge-modules/api-proxy-module or mqtt/edgelet-client 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
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=NO_VALGRIND;]true"
displayName: Set env variables
- bash: scripts/linux/generic-rust/install.sh --project-root "edge-modules/api-proxy-module"
displayName: Install Rust
- bash: scripts/linux/generic-rust/build.sh --project-root "edge-modules/api-proxy-module" --packages "api-proxy-module" --reduced-linker
displayName: Build
- bash: edge-modules/api-proxy-module/build/linux/test.sh
displayName: Test