sudo: false
dist: trusty
language: ruby
cache:
  directories:
  - vendor/bundle
rvm:
- 2.4.1
- 2.3.4
- 2.2.7
- 2.1.10
env:
- REDMINE_VERSION=3.4.2
- REDMINE_VERSION=3.3.4
- REDMINE_VERSION=3.2.7
- REDMINE_VERSION=3.1.7
- REDMINE_VERSION=2.6.10
- REDMINE_VERSION=master
matrix:
  allow_failures:
  - env: REDMINE_VERSION=master
  exclude:
  - rvm: 2.4.1
    env: REDMINE_VERSION=3.3.4
  - rvm: 2.4.1
    env: REDMINE_VERSION=3.2.7
  - rvm: 2.4.1
    env: REDMINE_VERSION=3.1.7
  - rvm: 2.4.1
    env: REDMINE_VERSION=2.6.10
branches:
  except:
  - debian
before_install:
- gem update --system
- gem install bundler
- bundle --version
install:
- export BUNDLE_GEMFILE=""
- export BUNDLE_PATH="$(pwd)/vendor/bundle"
- bundle install --jobs=3 --retry=3 --without development
- BUNDLE_OPTS="--without development" ./redmine update
script:
- bundle exec rake spec

sudo: false
dist: trusty
language: ruby
cache:
  directories:
  - vendor/bundle
rvm:
- 2.4.2
- 2.3.5
- 2.2.8
- 2.1.10
env:
- REDMINE_VERSION=3.4.2
- REDMINE_VERSION=3.3.4
- REDMINE_VERSION=3.2.7
- REDMINE_VERSION=3.1.7
- REDMINE_VERSION=2.6.10
- REDMINE_VERSION=master
matrix:
  allow_failures:
  - env: REDMINE_VERSION=master
  exclude:
  - rvm: 2.4.2
    env: REDMINE_VERSION=3.3.4
  - rvm: 2.4.2
    env: REDMINE_VERSION=3.2.7
  - rvm: 2.4.2
    env: REDMINE_VERSION=3.1.7
  - rvm: 2.4.2
    env: REDMINE_VERSION=2.6.10
branches:
  except:
  - debian
before_install:
- gem update --system
- gem install bundler
- bundle --version
install:
- export BUNDLE_GEMFILE=""
- export BUNDLE_PATH="$(pwd)/vendor/bundle"
- bundle install --jobs=3 --retry=3 --without development
- BUNDLE_OPTS="--without development" ./redmine update
script:
- bundle exec rake spec

Upgrade ruby versions for CI
Upgrade ruby versions for CI
