Skip to content

Commit

Permalink
Remove bower setup for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Dec 4, 2017
1 parent b098e8b commit 4d2a259
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions tools/ci/setup_js_env.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
which bower || npm install -g bower

# Check if the bower cache is valid, otherwise delete it
if ! cmp --silent bower.json vendor/assets/bower_components/bower.json; then
rm -rf vendor/assets/bower_components
fi

if [ -d vendor/assets/bower_components ]; then
# Using bower_components from cache
echo "bower assets installed... moving on."
else
bower install --allow-root -F --config.analytics=false
STATUS=$?
echo bower exit code: $STATUS

# fail the whole test suite if bower install failed
[ $STATUS = 0 ] || exit 1
[ -d vendor/assets/bower_components ] || exit 1
fi
rm -rf vendor/assets/bower_components

# make sure yarn is installed, in the right version
bundle exec rake webpacker:check_yarn || npm install -g yarn
Expand Down

0 comments on commit 4d2a259

Please sign in to comment.