sudo: required
language: cpp
+# This line necessary for allow_failures operation
+env:
+
matrix:
# Show final status immediately if a test fails.
fast_finish: true
+ allow_failures:
+ - env: CHECK_COMMIT_FORMAT=ON
include:
# Android build.
- os: linux
env: VULKAN_BUILD_TARGET=LINUX
# Check for proper clang formatting in the pull request.
- env: CHECK_FORMAT=ON
+ # Check for proper commit message formatting for commits in PR
+ - env: CHECK_COMMIT_FORMAT=ON
cache: ccache
echo "Skipping clang-format check since this is not a pull request."
fi
fi
+ - |
+ if [[ "$CHECK_COMMIT_FORMAT" == "ON" ]]; then
+ if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
+ echo "Checking commit message formats: See CONTRIBUTING.md"
+ ./scripts/check_commit_message_format.sh
+ fi
+ fi
- set +e
notifications: