#/bin/bash -we
set -e

echo "127.0.0.1 localhost.twitch.tv" >> /etc/hosts
mkdir extract
CI=true yarn i18n:upload-source
yarn ci
cp merged-test-results.xml extract/test-results.xml
sh ./scripts/bundleForLambda.sh
cp -R dist extract/dist
cp -R scripts extract/scripts
cp -R static extract/static
cp -R extract ../../
