ianheggie/health_check

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
dest: xenial
os: linux
# Released April 2018, Support ended: April 2023
# ruby 2.4.9, 2.5.3, 2.5.7, 2.6.5 (default) and 2.7.0 pre-installed on travis
addons:
  apt:
    packages:
    - net-tools

cache: bundler
language: ruby
notifications:
  email:
    on_success: change
    on_failure: always

before_install:
  - gem update --system $RUBYGEMS_VERSION
  - gem --version
  - gem install bundler ${BUNDLER_VERSION:+-v} ${BUNDLER_VERSION}
  - gem install smarter_bundler
  - bundle --version
  - mkdir -p tmp/bundle

bundler_args: "--binstubs"

script: ./test/test_with_railsapp

jobs:
  fast_finish: true

  allow_failures:

    - rvm: 3.0.1
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES

    - rvm: 3.0.1
      gemfile: test/rails_edge.gemfile
      env: 
      - RAILS_VERSION=edge 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED

    - rvm: ruby-head
      gemfile: test/rails_6.1.gemfile
      env: 
      - RAILS_VERSION=6.1 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED

    - rvm: ruby-head
      gemfile: test/rails_edge.gemfile
      env: 
      - RAILS_VERSION=edge 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED


  include:
    # -------------------------------------
    # Standard
    
    # ruby 5.0  Jun. 2016
    
    - rvm: 2.2.2
      gemfile: test/rails_5.0.gemfile
      env: 
      - RAILS_VERSION=5.0 
      - MIDDLEWARE=no
      - RUBYGEMS_VERSION=2.7.11
      - BUNDLER_VERSION=1.17.3

    - rvm: 2.3.6
      gemfile: test/rails_5.0.gemfile
      env:
      - RAILS_VERSION=5.0
      - MIDDLEWARE=no

    # rails 5.1 sometime before May 2017
    
    - rvm: 2.2.2
      gemfile: test/rails_5.1.gemfile
      env:
      - RAILS_VERSION=5.1
      - MIDDLEWARE=no
      - RUBYGEMS_VERSION=2.7.11
      - BUNDLER_VERSION=1.17.3

    - rvm: 2.3.6
      gemfile: test/rails_5.1.gemfile
      env:
      - RAILS_VERSION=5.1
      - MIDDLEWARE=no
      - BUNDLER_VERSION=1.17.3

    - rvm: 2.4.3
      gemfile: test/rails_5.1.gemfile
      env:
      - RAILS_VERSION=5.1
      - MIDDLEWARE=no

    # -------------------------------------
    # Middleware
    
    # ruby 5.0  Jun. 2016
    
    - rvm: 2.2.2
      gemfile: test/rails_5.0.gemfile
      env:
      - RAILS_VERSION=5.0
      - MIDDLEWARE=yes
      - RUBYGEMS_VERSION=2.7.11
      - BUNDLER_VERSION=1.17.3

    - rvm: 2.3.6
      gemfile: test/rails_5.0.gemfile
      env:
      - RAILS_VERSION=5.0
      - MIDDLEWARE=yes

    # rails 5.1 sometime before May 2017
    
    - rvm: 2.2.2
      gemfile: test/rails_5.1.gemfile
      env:
      - RAILS_VERSION=5.1
      - MIDDLEWARE=yes
      - RUBYGEMS_VERSION=2.7.11
      - BUNDLER_VERSION=1.17.3

    - rvm: 2.4.3
      gemfile: test/rails_5.1.gemfile
      env:
      - RAILS_VERSION=5.1
      - MIDDLEWARE=yes


    # rails 5.2 April 2018
    # -------------------------------------
    # INSTALLED AS MIDDLEWARE
    

    # rails 6.0

    - rvm: 2.5.0
      gemfile: test/rails_6.0.gemfile
      env:
      - RAILS_VERSION=6.0
      - MIDDLEWARE=YES

    - rvm: 2.6.7
      gemfile: test/rails_6.0.gemfile
      env:
      - RAILS_VERSION=6.0
      - MIDDLEWARE=YES
    
    # Not testing past recommended ruby version as listed on https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html

    # --------------------------------------
    - rvm: 2.5.0
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES

    - rvm: 2.6.6
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES

    - rvm: 2.7.3
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES

    - rvm: 3.0.1
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED
    
   # ------------------
   # FIXME
   # ------------------

    - rvm: 3.0.1
      gemfile: test/rails_6.1.gemfile
      env:
      - RAILS_VERSION=6.1
      - MIDDLEWARE=YES

    - rvm: 3.0.1
      gemfile: test/rails_edge.gemfile
      env: 
      - RAILS_VERSION=edge 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED

    - rvm: ruby-head
      gemfile: test/rails_6.1.gemfile
      env: 
      - RAILS_VERSION=6.1 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED

    - rvm: ruby-head
      gemfile: test/rails_edge.gemfile
      env: 
      - RAILS_VERSION=edge 
      - MIDDLEWARE=YES
      - SMTP_STARTTLS=DISABLED