Skip to content

Commit

Permalink
Build improvements
Browse files Browse the repository at this point in the history
 * Only compile translations once on release
 * Quieten and tidy some output for build and release scripts
  • Loading branch information
declension committed Nov 20, 2018
1 parent fc291d7 commit 141edd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@ pushd "$root" >/dev/null
dist_dir="$PWD/dist"
echo "Building to $dist_dir"

echo "Installing Pipenv dependencies..."
echo "Installing Pipenv dev dependencies..."
pipenv install --dev >/dev/null
pipenv run pipenv_to_requirements -f
pipenv run pipenv_to_requirements -f > /dev/null

[ -e "$dist_dir" ] && rm -rf "$dist_dir"
mkdir "$dist_dir"
cd "$dist_dir"

echo Installing dependencies from pip
pipenv run pip install -r "$root/requirements.txt" -t ./
echo "Installing runtime dependencies with pip..."
pipenv run pip install -q -r "$root/requirements.txt" -t ./

echo "Cleaning up"
echo "Cleaning up..."
rm "$root"/requirements*.txt
rm -rf ./*.dist-info/

echo "Copying source and config"
echo "Copying source and config..."
for inc in $includes; do
cp -r "$root/$inc" "./$inc"
done

echo "Compiling translations"
echo "Compiling translations..."
"$root/bin/compile-translations"

popd >/dev/null
2 changes: 0 additions & 2 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ if [ "$1" != "-y" ]; then
read -n 1 -p "Continue? (ctrl-c to abort)"
fi

$root/bin/compile-translations

echo -e "\nContinuing with build...\n"
output="squeeze-alexa-release-$version.zip"

Expand Down

0 comments on commit 141edd4

Please sign in to comment.