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). |
| 5 | set -eu |
| 6 | cd "$(dirname "$0")/.." |
| 7 | logs=build/logs; mkdir -p "$logs" |
| 8 | swift package --package-path apple resolve |
| 9 | python3 scripts/check-oficina-id.py |
| 10 | python3 scripts/check-sign-in-lifetime.py |
| 11 | python3 scripts/check-share.py |
| 12 | swift 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. |
| 14 | export EQUIPO_MARKDOWN_DIFFERENTIAL="$(pwd)/build/markdown-differential.json" |
| 15 | python3 scripts/check-fixtures.py |
| 16 | python3 scripts/check-strings.py |
| 17 | python3 scripts/check-parity.py |
| 18 | # The repository-wide reference scan (make ci) reads native files too. |
| 19 | python3 ../scripts/runner-dead-references.py |
| 20 | swift test --package-path apple > "$logs/swift-test.log" 2>&1 || { tail -40 "$logs/swift-test.log"; exit 1; } |
| 21 | grep -E 'Test run with .* passed' "$logs/swift-test.log" |
| 22 | swift build --package-path apple --product EquipoMac > "$logs/mac-build.log" 2>&1 || { grep -E 'error' "$logs/mac-build.log" | head -20; exit 1; } |
| 23 | echo "EquipoMac builds" |
| 24 | scripts/build-iphone.sh simulator > "$logs/phone-build.log" 2>&1 || { grep -E 'error' "$logs/phone-build.log" | head -20; exit 1; } |
| 25 | echo "EquipoPhone builds for the iOS Simulator" |
| 26 | |