CodeCommitsIssuesPull requestsActionsInsightsSecurity
e8cbf3d09e6b009ec0c094ad3594da558f4869c9

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ci/check-syntax.sh

20lines · modecode

1#!/usr/bin/env bash
2set -e -x
3
4source default-config
5
6./install-os-packages.sh jq
7
8[[ -d "${WORKSPACE}/sources" ]] || die "Run get-sources.sh first"
9
10mkdir -p "${WORKSPACE}/build"
11pushd "${WORKSPACE}/build"
12
13cmake -DCMAKE_BUILD_TYPE=Debug $CMAKE_FLAGS ../sources
14
15make -j $THREADS re2_st # Generated headers
16
17jq --raw-output '.[] | .command' compile_commands.json | grep -v -P -- '-c .+/contrib/' | sed -r -e 's/-o\s+\S+/-fsyntax-only/' > syntax-commands
18xargs --arg-file=syntax-commands --max-procs=$THREADS --replace /bin/sh -c "{}"
19
20popd