forked from libimobiledevice-win32/ideviceinstaller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
54 lines (53 loc) · 1.87 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
jobs:
- job: macos
pool:
vmImage: 'xcode9-macos10.13'
variables:
TARGET: x86_64-apple-darwin
steps:
- script: |
brew install autoconf automake libtool pkg-config openssl libzip
displayName: Install build dependencies
- script: |
brew install libplist libimobiledevice
displayName: Install libplist, libimobiledevice
- script: |
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
./autogen.sh --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
displayName: Build
- script: |
make check
displayName: Test
- job: linux
pool:
vmImage: 'ubuntu-16.04'
variables:
TARGET: x86_64-unknown-linux-gnu
CFLAGS: -fPIC
container:
image: ubuntu:18.04
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
steps:
- script: |
/tmp/docker exec -t -u 0 ci-container \
sh -c "apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" -y install sudo"
displayName: Set up sudo
- script: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y --no-install-recommends lsb-release automake make libtool clang gnupg pkg-config libzip-dev
displayName: Install build dependencies
- script: |
echo "deb http://ppa.launchpad.net/quamotion/ppa/ubuntu bionic main" | sudo tee -a /etc/apt/sources.list.d/quamotion.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E25E7A74
sudo apt-get update
sudo apt-get install -y --no-install-recommends libplist-dev libusbmuxd-dev libimobiledevice-dev
displayName: Install libplist, libusbmuxd, libimobiledevice
- script: |
./autogen.sh --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
displayName: Build
- script: |
make check
displayName: Test