language: ruby

before_install:
  # https://github.com/travis-ci/travis-ci/issues/8978
  - gem update --system
  - gem update bundler
  - bundle version

rvm:
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - ruby-head

matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head

deploy:
  provider: rubygems
  api_key:
    secure: BQQeiJ84RINkM5Pxm7zFSAbOS2T5THi+37CoswQXe5eTi+0PIl14plWJByGOj2ho2e6kam5XU/VUgQzDexhkFz174QDP+BIuhdNxRMuMqgKuffi0Cyb9CM7JybpsB+Yd97X3nNxiubR/qoJPQ5nvG1SvCuF2TK3Zq8cL5VfxZ9o=
  gem: ovpnmcgen.rb
  on:
    tags: true
    repo: "iphoting/ovpnmcgen.rb"
    ruby: 2.6
    branch: master

language: ruby

addons:
  apt_packages: build-essential

before_install:
  # https://github.com/travis-ci/travis-ci/issues/8978
  - gem update --system
  - gem update bundler
  - bundle version

rvm:
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
  - ruby-head

matrix:
  fast_finish: true
  allow_failures:
    - rvm: 
       - ruby-head
       - 2.7

deploy:
  provider: rubygems
  api_key:
    secure: BQQeiJ84RINkM5Pxm7zFSAbOS2T5THi+37CoswQXe5eTi+0PIl14plWJByGOj2ho2e6kam5XU/VUgQzDexhkFz174QDP+BIuhdNxRMuMqgKuffi0Cyb9CM7JybpsB+Yd97X3nNxiubR/qoJPQ5nvG1SvCuF2TK3Zq8cL5VfxZ9o=
  gem: ovpnmcgen.rb
  on:
    tags: true
    repo: "iphoting/ovpnmcgen.rb"
    ruby: 2.6
    branch: master

Fix Travis CI for Ruby 2.7
Fix Travis CI for Ruby 2.7