Skip to content

Commit

Permalink
Add 5.2 to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
straydogstudio committed May 16, 2018
1 parent d8de557 commit f1da36a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
- RAILS_VERSION=4.2
- RAILS_VERSION=5.0
- RAILS_VERSION=5.1
- RAILS_VERSION=5.2
rvm:
- 2.2.10
- 2.3.7
Expand Down
Binary file removed spec/dummy_5/db/test.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/test_5.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ do
echo Reusing Gemfile.lock.$version
cp Gemfile.lock.$version Gemfile.lock
fi
rm spec/dummy_4/db/test.sqlite3
rm spec/dummy_5/db/test.sqlite3
export RAILS_VERSION=$version
spec/ci.rb
cp Gemfile.lock Gemfile.lock.$version
Expand Down
2 changes: 1 addition & 1 deletion spec/test_5.1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ do
echo Reusing Gemfile.lock.$version
cp Gemfile.lock.$version Gemfile.lock
fi
rm spec/dummy_4/db/test.sqlite3
rm spec/dummy_5/db/test.sqlite3
export RAILS_VERSION=$version
spec/ci.rb
cp Gemfile.lock Gemfile.lock.$version
Expand Down
16 changes: 16 additions & 0 deletions spec/test_5.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export RAILS_ENV=test

for version in 5.2
do
echo "Testing Rails version " $version
rm Gemfile.lock
if [ -f Gemfile.lock.$version ];
then
echo Reusing Gemfile.lock.$version
cp Gemfile.lock.$version Gemfile.lock
fi
rm spec/dummy_5/db/test.sqlite3
export RAILS_VERSION=$version
spec/ci.rb
cp Gemfile.lock Gemfile.lock.$version
done

0 comments on commit f1da36a

Please sign in to comment.