forked from nervosnetwork/ckb-vm-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
39 lines (39 loc) · 1.77 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
jobs:
- job: TestSuite
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: git submodule update --init --recursive
displayName: Update git submodules
- script: |
sudo apt-get update
sudo apt-get install -y autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev
displayName: Install RISC-V dependencies
- script: docker run --rm -v `pwd`:/code nervos/ckb-riscv-gnu-toolchain:bionic-20210804 cp -r /riscv /code/
displayName: Extract RISC-V GNU toolchain files
- script: RISCV=`pwd`/riscv ./test.sh --update-ckb-vm
displayName: Test Suite
- job: Coverage
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: git submodule update --init --recursive
displayName: Update git submodules
- script: |
sudo apt-get update
sudo apt-get install -y autoconf automake autotools-dev libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev cmake
displayName: Install RISC-V and kcov dependencies
- script: |
git clone https://github.com/SimonKagstrom/kcov
mkdir -p kcov/build
cd kcov/build
cmake ..
make
sudo make install
cd ../..
kcov --version
displayName: Install kcov
- script: docker run --rm -v `pwd`:/code nervos/ckb-riscv-gnu-toolchain:bionic-20210804 cp -r /riscv /code/
displayName: Extract RISC-V GNU toolchain files
- script: RISCV=`pwd`/riscv ./test.sh --update-ckb-vm --coverage
displayName: Coverage