-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathazure-pipelines.yml
57 lines (53 loc) · 1.64 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
jobs:
###########################################################
# Builds
###########################################################
- job: LinuxBuilds
# Host Box
pool:
vmImage: 'ubuntu-20.04'
# Docker Images
strategy:
matrix:
ubuntu18:
image: tfcollins/test-ubuntu:20.04
container: $[ variables['image'] ]
steps:
- script: |
sudo DEBIAN_FRONTEND=noninteractive apt-get -qq update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git cmake doxygen graphviz libaio-dev libusb-1.0-0-dev libserialport-dev libavahi-client-dev rpm tar bzip2 gzip
displayName: "Setup Ubuntu"
condition: contains(variables['image'], 'ubuntu')
- script: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libxml2 libxml2-dev bison flex libboost-all-dev
git clone https://github.com/analogdevicesinc/libiio.git
cd libiio
mkdir build && cd build
cmake ..
make
sudo make install
sudo ldconfig
cd ../..
rm -rf libiio
displayName: Install libiio-iio
- script: |
git clone https://github.com/analogdevicesinc/libad9361-iio.git
cd libad9361-iio
mkdir build && cd build
cmake ..
make
sudo make install
sudo ldconfig
cd ../..
rm -rf libad9361-iio
displayName: Install libad9361-iio
- script: |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libgmp-dev swig gnuradio gnuradio-dev
mkdir build && cd build
cmake ..
make
cd ..
displayName: Build
###########################################################
# Deploy
###########################################################