File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55set -o pipefail
66set -eux
77
8- # set up dependencies
8+ ROOT=" $( cd " $( dirname " $0 " ) /../.." && pwd) "
9+ WORKDIR=" $ROOT /tmp/integration-user-install"
10+
11+ rm -rf " $WORKDIR "
12+ mkdir -p " $WORKDIR "
13+ pushd " $WORKDIR "
14+
15+ # set up dependencies in a fresh Gemfile
916gem install bcrypt # it's complicated, see Rails 7549ba77. can probably be removed once Rails 8.0 is EOL.
10- rm -f Gemfile.lock
11- bundle remove actionmailer || true
12- bundle remove rails || true
13- rm -f Gemfile.lock
17+ cat > Gemfile << EOF
18+ source "https://rubygems.org"
19+ EOF
1420bundle add rails --skip-install ${RAILSOPTS:- }
1521bundle install --prefer-local
1622bundle exec rails -v
1723
18- # do our work a directory with spaces in the name (#176, #184)
19- rm -rf " My Workspace"
24+ # do our work in a directory with spaces in the name (#176, #184)
2025mkdir " My Workspace"
2126pushd " My Workspace"
2227
@@ -27,7 +32,7 @@ function prepare_deps {
2732 bundle add rails --skip-install ${RAILSOPTS:- }
2833
2934 # use the tailwindcss-rails under test
30- bundle add tailwindcss-rails --skip-install --path=" ../.. "
35+ bundle add tailwindcss-rails --skip-install --path=" $ROOT "
3136 bundle add tailwindcss-ruby --skip-install ${TAILWINDCSSOPTS:- }
3237 bundle install --prefer-local
3338 bundle show --paths | fgrep tailwind
Original file line number Diff line number Diff line change 55set -o pipefail
66set -eux
77
8- # set up dependencies
8+ ROOT=" $( cd " $( dirname " $0 " ) /../.." && pwd) "
9+ WORKDIR=" $ROOT /tmp/integration-user-upgrade"
10+
11+ rm -rf " $WORKDIR "
12+ mkdir -p " $WORKDIR "
13+ pushd " $WORKDIR "
14+
15+ # set up dependencies in a fresh Gemfile
916gem install bcrypt # it's complicated, see Rails 7549ba77. can probably be removed once Rails 8.0 is EOL.
10- rm -f Gemfile.lock
11- bundle remove actionmailer || true
12- bundle remove rails || true
13- rm -f Gemfile.lock
17+ cat > Gemfile << EOF
18+ source "https://rubygems.org"
19+ EOF
1420bundle add rails --skip-install ${RAILSOPTS:- }
1521bundle install --prefer-local
1622
17- # do our work a directory with spaces in the name (#176, #184)
18- rm -rf " My Workspace"
23+ # do our work in a directory with spaces in the name (#176, #184)
1924mkdir " My Workspace"
2025pushd " My Workspace"
2126
@@ -54,7 +59,7 @@ grep -q "Show this post" app/views/posts/index.html.erb
5459bundle remove tailwindcss-rails --skip-install
5560bundle remove tailwindcss-ruby --skip-install
5661
57- bundle add tailwindcss-rails --skip-install --path=" ../.. "
62+ bundle add tailwindcss-rails --skip-install --path=" $ROOT "
5863bundle add tailwindcss-ruby --skip-install ${TAILWINDCSSOPTS:- --version 4.0.0}
5964
6065bundle install --prefer-local
You can’t perform that action at this time.
0 commit comments