Skip to content

Commit

Permalink
better check
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe authored and escattone committed Apr 1, 2020
1 parent 2c8c31a commit 63a9cfe
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions scripts/ci-end-to-end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,22 @@ node content build

echo "Contents of client/build/..."
ls -ltr client/build/

# It should have built this folder too
echo "Contents of client/build/en-us/docs/foo/bar..."
ls -ltr client/build/en-us/docs/foo/bar

echo "HACK 1. Contents of client/build/en-us"
ls -ltr client/build/en-us
echo "HACK 2. Contents of client/build/en-us"
ls -ltr client/build/en-US
# Expect this file to have been created
echo "Contents of client/build/en-us/titles.json"
cat client/build/en-us/titles.json


# It should never create a build folder called 'en-US'
# It should always only be 'en-us'.
if [ -d client/build/en-US ]; then
echo "client/build/en-US should never have been created."
echo "(only lower case please!)"
exit 1
fi

node scripts/end-to-end-test.js

0 comments on commit 63a9cfe

Please sign in to comment.