mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

These tasks are meant to run nightly on the master branch. Currently, the external dns, http and dhcp Spicy analyzers are installed via zkg post building. The build artifact is uploaded to Cirrus and the benchmarker API triggered. For the spicy_head task, the auxil/spicy submodule is pulled to the latest commit. This also provides a bit of a nightly integration test.
31 lines
813 B
Bash
Executable file
31 lines
813 B
Bash
Executable file
#! /usr/bin/env bash
|
|
#
|
|
# Shell script to install the latest version of certain
|
|
# Spicy analyzers using zkg *and* repackages build.tgz.
|
|
# This script should run after build.sh, but before the
|
|
# artifact upload happens.
|
|
set -eux
|
|
|
|
test -d ${CIRRUS_WORKING_DIR}/install
|
|
|
|
# Install prefix
|
|
PREFIX=${CIRRUS_WORKING_DIR}/install
|
|
|
|
export PATH=$PREFIX/bin:$PATH
|
|
|
|
zkg --version
|
|
|
|
ANALYZERS="
|
|
https://github.com/zeek/spicy-dhcp
|
|
https://github.com/zeek/spicy-dns
|
|
https://github.com/zeek/spicy-http
|
|
"
|
|
|
|
for analyzer in $ANALYZERS; do
|
|
echo Y | zkg -vvvvv install "${analyzer}"
|
|
done
|
|
|
|
# After installing analyzers, package up build.tgz (representing
|
|
# the contents of the installation directory). This overwrites any
|
|
# existing artifact created by build.sh
|
|
tar -czf ${CIRRUS_WORKING_DIR}/build.tgz ${CIRRUS_WORKING_DIR}/install
|