blob: 596ca4fc6cbc8a6ee6ff284344be27b5dfcdb763 [file] [log] [blame]
#!/bin/bash
# Fail on any error.
set -e
# Display commands being run.
set -x
# Detect server vs local run. Local run should be from the project's root
# directory.
if [ -v KOKORO_JOB_NAME ]
then
# Server
cd git/hafnium
mkdir out
echo "arch_cc_version = \"3.9\"" > out/args.gn
else
# Local
echo "Testing kokoro build locally..."
fi
# TODO: Kokoro is missing ninja, gcc-4.9 or above and qemu
# Check the build works
# make
# # Check to code looks healthy, failing if any changes were made
# make format
# make tidy
#
# if [[ `git status --porcelain` ]]
# then
# exit 1
# fi