-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
61 lines (59 loc) · 1.8 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
58
59
60
61
jobs:
# All tasks on Windows....
- job: build_all_windows
displayName: Build all tasks (Windows)
pool:
vmImage: windows-latest
variables:
CI_TEST: true
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 3.1.102
- task: BatchScript@1
displayName: 'Download AElf build tools'
inputs:
filename: 'chain/scripts/download_binary.bat'
- script: PowerShell.exe -file chain/scripts/install.ps1
displayName: 'Install protobuf'
- script: choco install unzip
displayName: 'Install unzip'
- powershell: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- script: PowerShell.exe -file build.ps1 -target=Run-Unit-Tests
displayName: 'Build and Test'
# All tasks on Linux
- job: build_all_linux
displayName: Build all tasks (Linux)
timeoutInMinutes: 120
pool:
vmImage: ubuntu-latest
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 3.1.102
- script: bash chain/scripts/download_binary.sh
displayName: 'Download AElf build tools'
- script: bash chain/scripts/install.sh
displayName: 'Install protobuf'
- script: bash build.sh -target=Run-Unit-Tests
displayName: 'Build and Test'
# All tasks on macOS
- job: build_all_darwin
displayName: Build all tasks (macOS)
pool:
vmImage: macos-latest
variables:
CI_TEST: true
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 3.1.102
- script: bash chain/scripts/download_binary.sh
displayName: 'Download AElf build tools'
- script: bash chain/scripts/install.sh
displayName: 'Install protobuf'
- script: bash build.sh -target=Run-Unit-Tests
displayName: 'Build and Test'