navid/veins / master / .buildkite/pipeline.yml
pipeline.yml
← .buildkite · 1114 bytes · raw · download
env:
VEINSFORGE_BASE_URL: "https://veinsforge.top"
VEINSFORGE_REPO_URL: "https://veinsforge.top/navid/veins"
checkout:
skip: true
steps:
- label: ":hammer: build, test & release"
key: "build"
command: |
set -euo pipefail
rev="${VEINSFORGE_COMMIT:-${BUILDKITE_COMMIT:-}}"
if [ -z "$rev" ]; then
echo "no Veins commit to build (set VEINSFORGE_COMMIT for manual builds)" >&2
exit 1
fi
repo_url="${VEINSFORGE_URL:-${VEINSFORGE_REPO_URL:-https://veinsforge.top/navid/veins}}"
work="${BUILDKITE_BUILD_CHECKOUT_PATH:-$PWD}"
rm -rf "$work/source" "$work/source.zip"
mkdir -p "$work/source"
curl -fsSL "${repo_url%/}/archive/${rev}.zip" -o "$work/source.zip"
unzip -q "$work/source.zip" -d "$work/source"
src="$(find "$work/source" -mindepth 1 -maxdepth 1 -type d -print -quit)"
if [ -z "$src" ]; then
echo "source archive did not contain a repository directory" >&2
exit 1
fi
bash "$src/.buildkite/scripts/ci.sh"
artifact_paths:
- "release/*.zip"
timeout_in_minutes: 45