From 6a39c51f8f1d992c53bc3af80d9db0037c09fb41 Mon Sep 17 00:00:00 2001 From: David Steele Date: Thu, 22 Apr 2021 18:18:34 -0400 Subject: [PATCH] Test pull requests in Cirrus CI. Both FreedBSD and MacOS use clang as their default compiler and clang catches some errors that gcc does not. Specifically, wide integers being assigned to short integers resulting in possible truncations. --- .cirrus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 0315eed92..f1c626be0 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,8 +1,8 @@ # Cirrus CI Build Definitions # ---------------------------------------------------------------------------------------------------------------------------------- -# Build the branch if it is integration or ends in -ci/-cic (-cic targets only Cirrus CI) -only_if: $CIRRUS_BRANCH == 'integration' || $CIRRUS_BRANCH =~ '.*-ci$' || $CIRRUS_BRANCH =~ '.*-cic$' +# Build the branch if it is integration, a pull request, or ends in -ci/-cic (-cic targets only Cirrus CI) +only_if: $CIRRUS_BRANCH == 'integration' || $CIRRUS_PR != '' || $CIRRUS_BRANCH =~ '.*-ci$' || $CIRRUS_BRANCH =~ '.*-cic$' # No auto-cancel on integration auto_cancellation: $CIRRUS_BRANCH != 'integration'