Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

[DEVOPS-908] BuildKite: speed up macOS builds #3150

Merged
merged 1 commit into from
Jul 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions scripts/ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,21 @@ if [[ ("$OS_NAME" == "linux") && ("$BUILDKITE_BRANCH" == "master") ]];
fi
export with_haddock

targets="all-cardano-sl daedalus-bridge"

# There are no macOS explorer devs atm and it's only deployed on linux
# Build everything on linux but only a limited set of packages and
# tests on macos.
if [[ "$OS_NAME" == "linux" ]]; then
targets="$targets cardano-sl-explorer-frontend"
targets="all-cardano-sl daedalus-bridge"
else
targets="daedalus-bridge"
fi

# TODO: CSL-1133: Add test coverage to CI. To be reenabled when build times
# become smaller and allow coverage report to be built.

for trgt in $targets; do
echo "Building $trgt verbosely.."
echo "Building $trgt..."
nix-build -A "$trgt" -o "$trgt.root" \
--argstr gitrev "$BUILDKITE_COMMIT" \
--argstr buildId "$BUILDKITE_BUILD_NUMBER" \
--arg enableBenchmarks true

# TODO: CSL-1133
# if [[ "$trgt" == "cardano-sl" ]]; then
# stack test --nix --fast --jobs=2 --coverage \
# --ghc-options="-j +RTS -A128m -n2m -RTS";
# stack --nix hpc report $to_build
# fi

done