prjxray/.github/kokoro/db-full.sh

65 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
set -x
set -e
sudo apt-get update
sudo apt-get install -y \
bison \
build-essential \
ca-certificates \
clang-format \
cmake \
curl \
flex \
fontconfig \
git \
jq \
python \
python3 \
python3-dev \
python3-virtualenv \
python3-yaml \
virtualenv \
ls -l ~/.Xilinx
sudo chown -R $USER ~/.Xilinx
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
export
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
find .
echo "----------------------------------------"
echo "----------------------------------------"
echo "----------------------------------------"
echo $PWD
echo "----------------------------------------"
cd github/$KOKORO_DIR/
git fetch --tags || true
git describe --tags || true
# Build the C++ tools
make build --output-sync=target --warn-undefined-variables
# Setup the Python environment
make env --output-sync=target --warn-undefined-variables
source settings/$XRAY_SETTINGS.sh
(
export XILINX_LOCAL_USER_DATA=no
cd fuzzers
make --output-sync=target --warn-undefined-variables
)