Skip to content

Commit 96be542

Browse files
committed
Setup travis
1 parent 5142678 commit 96be542

3 files changed

Lines changed: 31 additions & 3 deletions

File tree

.travis.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
11
---
2-
sudo: false
32
language: ruby
3+
sudo: false
44
cache: bundler
5+
before_install: gem install bundler -v 1.17
6+
before_script: RAILS_ENV=test bundle exec rake db:create db:schema:load
7+
58
rvm:
9+
- 2.2.10
10+
- 2.3.8
11+
- 2.4.6
12+
- 2.5.5
613
- 2.6.3
7-
before_install: gem install bundler -v 2.0.2
14+
15+
gemfile:
16+
- gemfiles/rails4.2_graphql1.8.gemfile
17+
- gemfiles/rails5.0_graphql1.8.gemfile
18+
- gemfiles/rails5.0_graphql1.9.gemfile
19+
- gemfiles/rails5.1_graphql1.8.gemfile
20+
- gemfiles/rails5.1_graphql1.9.gemfile
21+
- gemfiles/rails5.2_graphql1.8.gemfile
22+
- gemfiles/rails5.2_graphql1.9.gemfile
23+
24+
matrix:
25+
include:
26+
- gemfile: gemfiles/rails4.2_graphql1.8.gemfile
27+
rvm: 2.1.10
28+
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
29+
rvm: 2.5.5
30+
- gemfile: gemfiles/rails_edge_graphql_edge.gemfile
31+
rvm: 2.6.3

spec/dummy/config/application.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,9 @@ class Application < Rails::Application
2525
# Middleware like session, flash, cookies can be added back manually.
2626
# Skip views, helpers and assets when generating a new resource.
2727
# config.api_only = true
28+
29+
if Rails::VERSION::MAJOR >= 5 && Rails::VERSION::MINOR > 1
30+
config.active_record.sqlite3.represent_boolean_as_integer = true
31+
end
2832
end
2933
end

spec/requests/mutations/login_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
let(:password) { '12345678' }
77
let(:user) { create(:user, :confirmed, password: password) }
88
let(:query) do
9-
<<~GRAPHQL
9+
<<-GRAPHQL
1010
mutation {
1111
login(
1212
email: "#{user.email}",

0 commit comments

Comments
 (0)