Commit 9fc99dd8 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

run-ci: Introduce ONLY_PACKAGES variable

parent 535806a0
......@@ -33,6 +33,8 @@ variables:
# builds. This is instantiated with, e.g., -dcore-lint during GHC validation
# builds.
# ONLY_PACKAGES can be passed to restrict set of packages that are built.
# EXTRA_OPTS are passed directly to test-patches.
# Multi-project pipeline variables:
......
#!/usr/bin/env bash
# Relevant environment variables:
#
# GHC (required) compiler to build with
# CI_CONFIG configuration file
# EXTRA_OPTS extra options passed to test-patches
# USE_NIX if 1, use nix to provide build dependencies
# ONLY_PACKAGES restrict set of packages to build
#
set -e
cd ci
......@@ -49,6 +58,8 @@ else
cabal new-install head-hackage-ci --installdir=$bindir
fi
ONLY_PACKAGES=( $ONLY_PACKAGES )
cd run
rm -f cabal.project
set -x
......@@ -58,4 +69,5 @@ $run \
--patches=../../patches \
--with-compiler=$GHC \
$EXTRA_OPTS \
${ONLY_PACKAGES[@]/#/-o} \
--ghc-option="$EXTRA_HC_OPTS"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment