-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathazure-pipelines.yml
40 lines (36 loc) · 1006 Bytes
/
azure-pipelines.yml
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
trigger:
- master
pr:
- master
jobs:
- job: 'PlatformIO_CI'
pool:
vmImage: 'ubuntu-latest'
container: 'python:2.7'
strategy:
matrix:
Buffer:
ExampleSrc: 'examples/Buffer/Buffer.ino'
Parser:
ExampleSrc: 'examples/Parser/Parser.ino'
Parser_KeyValue:
ExampleSrc: 'examples/Parser-KeyValue/Parser-KeyValue.ino'
Callback:
ExampleSrc: 'examples/Callback/Callback.ino'
Callback_P:
ExampleSrc: 'examples/Callback_P/Callback_P.ino'
Callback_non_blocking:
ExampleSrc: 'examples/Callback_non_blocking/Callback_non_blocking.ino'
steps:
- script: |
virtualenv venv
. venv/bin/activate
pip install -U PlatformIO==4.0.0
platformio update
displayName: 'Install PlatformIO'
- script: |
. venv/bin/activate
platformio ci --lib="." --board=nanoatmega328 --board=esp12e --board=leonardo
displayName: 'Run a multi-line script'
env:
PLATFORMIO_CI_SRC: $(ExampleSrc)