blob: 8b1e3d40d23098d784c0ac021de9acc9b17525bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
set -e
(
# Lock directory
flock 9
# pull in latest changes
cd "${WORKSPACE}"
git fetch
git checkout "${GIT_COMMIT_REF}"
cd -
for filename in "${WORKSPACE}"/*
do
if [ "${filename}" != ".git" ]
then
cp -vR "${filename}" .
fi
done
) 9>"${WORKSPACE}/lock"
# Simultaneously trigger common checks
GN3_CI_DIR="$(pwd)"
laminarc run gn3-lint GN3_CI_DIR="${GN3_CI_DIR}" \
gn3-mypy GN3_CI_DIR="${GN3_CI_DIR}" \
gn3-unittest GN3_CI_DIR="${GN3_CI_DIR}"
|