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 Oct 31, 2017
1 parent 61a58f8 commit 08255bd
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tools/ci/setup_js_env.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
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

# 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 08255bd

Please sign in to comment.