-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathsetup-ci.sh
More file actions
executable file
·61 lines (50 loc) · 1.54 KB
/
setup-ci.sh
File metadata and controls
executable file
·61 lines (50 loc) · 1.54 KB
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
#!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache 2.0 License.
set -ex
H2SPEC_VERSION="v2.6.0"
export SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:-$(date +%s)}
echo "Using SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH}"
# Source control
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install \
git \
ca-certificates
# To build CCF
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install \
build-essential \
clang \
cmake \
ninja-build \
which \
openssl-devel \
libuv-devel \
nghttp2-devel \
curl-devel \
libarrow-devel \
parquet-libs-devel \
doxygen \
clang-tools-extra-devel \
libbacktrace-static
# To run standard tests
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install \
lldb \
expect \
npm \
jq
# Extra-dependency for CDDL schema checker
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install rubygems
gem install cddl
# Release (extended) tests
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install procps
# protocoltest
tdnf --snapshottime=$SOURCE_DATE_EPOCH install -y bind-utils
curl -L --output h2spec_linux_amd64.tar.gz https://github.com/summerwind/h2spec/releases/download/$H2SPEC_VERSION/h2spec_linux_amd64.tar.gz
tar -xvf h2spec_linux_amd64.tar.gz
mkdir -p /opt/h2spec
mv h2spec /opt/h2spec/h2spec
rm h2spec_linux_amd64.tar.gz
# partitions test
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install iptables
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install strace
# For packaging
tdnf --snapshottime=$SOURCE_DATE_EPOCH -y install rpm-build