From f7724d91573dae3465a1ed52392134a5d01bf89c Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Tue, 8 Jan 2019 23:04:24 -0800 Subject: [PATCH] infra: Adding kokoro configs. Signed-off-by: Tim 'mithro' Ansell --- .github/kokoro/continuous.cfg | 1 + .github/kokoro/full.sh | 44 +++++++++++++++++++++++++++++++++++ .github/kokoro/presubmit.cfg | 1 + .github/kokoro/quick.sh | 1 + 4 files changed, 47 insertions(+) create mode 100644 .github/kokoro/continuous.cfg create mode 100755 .github/kokoro/full.sh create mode 100644 .github/kokoro/presubmit.cfg create mode 120000 .github/kokoro/quick.sh diff --git a/.github/kokoro/continuous.cfg b/.github/kokoro/continuous.cfg new file mode 100644 index 00000000..ff44c4cf --- /dev/null +++ b/.github/kokoro/continuous.cfg @@ -0,0 +1 @@ +build_file: "symbiflow-prjxray-artix7/.github/kokoro/full.sh" diff --git a/.github/kokoro/full.sh b/.github/kokoro/full.sh new file mode 100755 index 00000000..4e60a9a5 --- /dev/null +++ b/.github/kokoro/full.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e +set -x + +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 + +cd github/symbiflow-prjxray-artix7/ + +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/artix7.sh +( + export XILINX_LOCAL_USER_DATA=no + cd fuzzers + make --output-sync=target --warn-undefined-variables QUICK=y +) diff --git a/.github/kokoro/presubmit.cfg b/.github/kokoro/presubmit.cfg new file mode 100644 index 00000000..117c4189 --- /dev/null +++ b/.github/kokoro/presubmit.cfg @@ -0,0 +1 @@ +build_file: "symbiflow-prjxray-artix7/.github/kokoro/quick.sh" diff --git a/.github/kokoro/quick.sh b/.github/kokoro/quick.sh new file mode 120000 index 00000000..ee2000b0 --- /dev/null +++ b/.github/kokoro/quick.sh @@ -0,0 +1 @@ +full.sh \ No newline at end of file