blob: 78edf09ec17bb7fd36928a2e7f7278d3cb8bae39 (
plain)
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
|
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2020, Intel Corporation
#
# run-build.sh - is called inside a Docker container; prepares the environment
# and starts a build of PMDK project.
#
set -e
# Prepare build environment
./prepare-for-build.sh
# Build all and run tests
cd $WORKDIR
if [ "$SRC_CHECKERS" != "0" ]; then
make -j$(nproc) check-license
make -j$(nproc) cstyle
fi
make -j$(nproc)
make -j$(nproc) test
# do not change -j2 to -j$(nproc) in case of tests (make check/pycheck)
make -j2 pcheck TEST_BUILD=$TEST_BUILD
# do not change -j2 to -j$(nproc) in case of tests (make check/pycheck)
make -j2 pycheck
make -j$(nproc) DESTDIR=/tmp source
# Create PR with generated docs
if [[ "$AUTO_DOC_UPDATE" == "1" ]]; then
echo "Running auto doc update"
./utils/docker/run-doc-update.sh
fi
|