* Main gyp files are now standardized as platform/<platform>/platform.gyp. * Each platform gyp file defines appropriate loop_lib and headless_lib variables. * Each platform gyp file includes mbgl.gypi, which defines base targets which may be useful to all platforms. * CI targets are consistent across platforms: `make $(PLATFORM) && make test-$(PLATFORM)`. * Renamed the "linux" test app to "glfw". It's now built in OS X CI. * Android build flakiness is fixed. * iOS CI builds the bench and iosapp targets. * Mesa version is now in one place. * CI scripts use bash "strict mode" and correct error handling. * All build output goes to the build directory. * Removed vestigial iOS/OS X/Android Travis scripts.
20 lines
575 B
Bash
Executable File
20 lines
575 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
export PATH="`pwd`/.mason:${PATH}" MASON_DIR="`pwd`/.mason"
|
|
|
|
command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || {
|
|
echo "Can't find ${CLANG_TIDY:-clang-tidy} in PATH."
|
|
if [ -z ${CLANG_TIDY} ]; then
|
|
echo "Alternatively, you can set CLANG_TIDY to point to clang-tidy."
|
|
fi
|
|
exit 1
|
|
}
|
|
|
|
cd build/${PLATFORM}-${SUBPLATFORM}/${BUILDTYPE}
|
|
|
|
git ls-files '../../../src/mbgl/*.cpp' '../../../platform/*.cpp' '../../../test/*.cpp' | \
|
|
xargs -I{} -P ${JOBS} ${CLANG_TIDY:-clang-tidy} -header-filter='\/mbgl\/' {}
|