From dcc8b351464727e2780b279338dd46589424784e Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 14 Mar 2025 10:27:45 -0500 Subject: Add checks for invalid syntax post-i18n builds (#7935) --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 4a9a7e87f..c5613e289 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,8 @@ RUN \. "$NVM_DIR/nvm.sh" && \ echo "EXPO_PUBLIC_BUNDLE_DATE=$(date -u +"%y%m%d%H")" >> .env && \ npm install --global yarn && \ yarn && \ - yarn intl:build && \ + yarn intl:build 2>&1 | tee i18n.log && \ + if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compile errors!\n\n"; fi && \ EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() yarn build-web # DEBUG -- cgit 1.4.1