Initial Commit
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
CONTRACTS_ONLY=NO
|
||||
case "${1:-}" in
|
||||
--contracts-only) CONTRACTS_ONLY=YES ;;
|
||||
'') ;;
|
||||
-h|--help) echo 'Usage: scripts/test.sh [--contracts-only]'; exit 0 ;;
|
||||
*) echo "Unknown option: $1" >&2; exit 2 ;;
|
||||
esac
|
||||
if (($# > 1)); then echo 'Too many arguments' >&2; exit 2; fi
|
||||
cd "$ROOT"
|
||||
plutil -lint Tarnax/Info.plist Tarnax.xcodeproj/project.pbxproj
|
||||
for script in scripts/*.sh Tests/run.sh; do bash -n "$script"; done
|
||||
bash Tests/run.sh
|
||||
if [[ "$CONTRACTS_ONLY" == NO ]]; then bash scripts/build.sh; fi
|
||||
echo 'All requested checks passed.'
|
||||
Reference in New Issue
Block a user