#!/usr/bin/env bash
set -euo pipefail
# Runs after the Go steps (10 to 90), which are make ci target by target.
# The native app's gate (native/scripts/check-native.sh): the string catalog,
# BaseKit's tests, the Mac app and an iPhone Simulator build on a Mac; the
# catalog alone elsewhere. The screenshot gate (native/scripts/snapshots.sh)
# is not run here: its baselines are exact only on the macOS, Xcode and
# simulator runtime that drew them. swift test builds its tests and skips
# them without RASTRILLO_SNAPSHOTS.
if [[ "$(uname -s)" == Darwin ]]; then
  native/scripts/check-native.sh
else
  native/scripts/check-native.sh --core-only
fi
