You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Back to Articles


Changes in App

  • add /.travis.yml

    language: ruby
    sudo: required
    dist: trusty
    
    addons:
    chrome: stable
    cache:
    bundler: true
    
    before_install:
    - gem update bundler
    - gem install bundler
    - google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
    
    rvm:
    - 2.5.5
    - 2.6.3
    
    env:
    global:
    - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
    # Travis should check every minor version in a range of supported versions, because
    # rails does not follow sem-ver conventions, see http://guides.rubyonrails.org/maintenance_policy.html
    # It should be sufficient to test only the latest of the patch versions for a minor version, they
    # should be compatible across patch versions (only bug fixes are released in patch versions).
    matrix:
    - "RAILS_VERSION=5.2.4"
    
    services:
    - redis-server
    before_script:
    - jdk_switcher use oraclejdk8
    
    
  • add /tasks/_MY_APP_NAME_-dev.rake (e.g. exhibits-dev.rake)

    # frozen_string_literal: true
    require 'bundler/gem_tasks'
    require 'rspec/core/rake_task'
    require 'rubocop/rake_task'
    
    RSpec::Core::RakeTask.new(:spec)
    
    desc 'Run style checker'
    RuboCop::RakeTask.new(:rubocop) do |task|
    task.requires << 'rubocop-rspec'
    task.fail_on_error = true
    end
    
    # desc "Run continuous integration build"
    # task ci: ['engine_cart:generate'] do
    # Rake::Task['spec'].invoke
    # end
    
    desc 'Run continuous integration build'
    task ci: ['rubocop', 'spec']
    
    task default: :spec
    
    

Changes in Github



Changes in Travis



Testing that it all works




  • No labels