oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1#!/bin/sh
2# The native gate, on a Mac: fixtures against the API schema, the string
3# catalog, EquipoKit's tests, the Mac app and an unsigned iPhone Simulator
4# build. The proof vector's server half runs in `make test` (Go).
5set -eu
6cd "$(dirname "$0")/.."
7logs=build/logs; mkdir -p "$logs"
8swift package --package-path apple resolve
9python3 scripts/check-oficina-id.py
10python3 scripts/check-sign-in-lifetime.py
11python3 scripts/check-share.py
12swift test --package-path share --jobs 4 > "$logs/share-test.log" 2>&1 || { tail -40 "$logs/share-test.log"; exit 1; }
13# Includes Go Render/RenderDraft golden freshness; Swift tests compare every tree.
14export EQUIPO_MARKDOWN_DIFFERENTIAL="$(pwd)/build/markdown-differential.json"
15python3 scripts/check-fixtures.py
16python3 scripts/check-strings.py
17python3 scripts/check-parity.py
18# The repository-wide reference scan (make ci) reads native files too.
19python3 ../scripts/runner-dead-references.py
20swift test --package-path apple > "$logs/swift-test.log" 2>&1 || { tail -40 "$logs/swift-test.log"; exit 1; }
21grep -E 'Test run with .* passed' "$logs/swift-test.log"
22swift build --package-path apple --product EquipoMac > "$logs/mac-build.log" 2>&1 || { grep -E 'error' "$logs/mac-build.log" | head -20; exit 1; }
23echo "EquipoMac builds"
24scripts/build-iphone.sh simulator > "$logs/phone-build.log" 2>&1 || { grep -E 'error' "$logs/phone-build.log" | head -20; exit 1; }
25echo "EquipoPhone builds for the iOS Simulator"
26