-
Notifications
You must be signed in to change notification settings - Fork 10
/
azure-pipelines.yml
53 lines (51 loc) · 2.1 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
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- bash: sudo apt-get install -y llvm-dev libclang-dev clang
displayName: 'Install deps'
- bash: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
displayName: "Install Rust"
- bash: git submodule update --init --recursive
displayName: 'Fetch submodules'
- bash: "cargo build"
displayName: "Build xdelta3-rs"
- bash: "cargo test"
displayName: "Test xdelta3-rs"
- bash: "cargo test --no-default-features --tests"
displayName: "Test xdelta3-rs (no-default-features)"
- job: macOS
pool:
vmImage: 'macOS-10.13'
steps:
- bash: git submodule update --init --recursive
displayName: 'Fetch submodules'
- bash: sudo xcode-select -s /Applications/Xcode_10.1.app/Contents/Developer
displayName: 'Select XCode version'
- bash: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
displayName: "Install Rust"
- bash: $HOME/.cargo/bin/cargo build
displayName: "Build xdelta3-rs"
- bash: $HOME/.cargo/bin/cargo test
displayName: "Test xdelta3-rs"
- bash: $HOME/.cargo/bin/cargo test --no-default-features --tests
displayName: "Test xdelta3-rs (no-default-features)"
- job: Windows
pool:
vmImage: 'windows-2019'
steps:
- bash: choco install llvm
displayName: 'Install deps'
- bash: git submodule update --init --recursive
displayName: 'Fetch submodules'
- bash: curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
displayName: "Install Rust"
- bash: $HOME/.cargo/bin/cargo build
displayName: "Build xdelta3-rs"
- bash: dos2unix xdelta3/xdelta3/examples/iOS/xdelta3-ios-test/xdelta3-ios-test/file_v{1,2}.bin
displayName: "Fix line ending of examples"
- bash: $HOME/.cargo/bin/cargo test
displayName: "Test xdelta3-rs"
- bash: $HOME/.cargo/bin/cargo test --no-default-features --tests
displayName: "Test xdelta3-rs (no-default-features)"