language: ruby
rvm:
  - 2.4.4
before_install: 
  - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && sudo apt-get install -y nodejs
before_script:
  - cd lib/assets && npm install && npm run bundle -- -p && cd -
  - cp config/database_example.yml config/database.yml
  - cp config/secrets_example.yml config/secrets.yml
  - cp config/branding_example.yml config/branding.yml
  - cp config/initializers/devise.rb.example config/initializers/devise.rb
  - cp config/initializers/recaptcha.rb.example config/initializers/recaptcha.rb
  - cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
  - bundle exec rake db:drop RAILS_ENV=test
  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:schema:load RAILS_ENV=test
  - bundle exec rake db:migrate RAILS_ENV=test 

script:
  - bundle exec rake test

language: ruby
rvm:
  - 2.4.4
before_install:
  - curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && sudo apt-get install -y nodejs
before_script:
  - cd lib/assets && npm install && npm run bundle -- -p && cd -
  - cp config/database_example.yml config/database.yml
  - cp config/secrets_example.yml config/secrets.yml
  - cp config/branding_example.yml config/branding.yml
  - cp config/initializers/devise.rb.example config/initializers/devise.rb
  - cp config/initializers/recaptcha.rb.example config/initializers/recaptcha.rb
  - cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
  - bundle exec rake db:drop RAILS_ENV=test
  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:schema:load RAILS_ENV=test
  - bundle exec rake db:migrate RAILS_ENV=test

script:
  - bundle exec rake test
  - bundle exec rspec spec

Add RSpec check to Travis CI
Add RSpec check to Travis CI
