Skip to content

Commit

Permalink
Migrate Ruby 2.0.0 case in Travis to GitHub Actions.
Browse files Browse the repository at this point in the history
As the CentOS 7 system Ruby is the fixed version 2.0.0, we can remove
the Ruby 2.0.0 case in Travis.

Remove `sudo: required` syntax in Travis, as the key `sudo` is deprecated
and it has no effect anymore according to the Travis "View config" page.
  • Loading branch information
junaruga committed Mar 22, 2021
1 parent 70ab0dc commit ec1dac4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on: [push, pull_request]
jobs:
build:
name: >-
${{ matrix.distro }} ${{ matrix.image }}
${{ matrix.distro }} ${{ matrix.image }} ${{ matrix.name_extra || '' }}
runs-on: ubuntu-20.04 # focal
continue-on-error: ${{ matrix.allow-failure || false }}
strategy:
matrix:
include:
- {distro: centos, image: 'centos:7'}
# CentOS 7 system Ruby is the fixed version 2.0.0.
- {distro: centos, image: 'centos:7', name_extra: 'ruby 2.0.0'}
# Fedora latest stable version
# Allow failure due to the following test failures.
# https://github.com/brianmario/mysql2/issues/965
Expand Down
10 changes: 0 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
sudo: required
dist: trusty
language: ruby
bundler_args: --without development
Expand All @@ -9,17 +8,8 @@ before_install:
- gem update bundler
- gem --version
- bash ci/setup.sh
addons:
hosts:
- mysql2gem.example.com
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
matrix:
include:
- rvm: 2.0.0
- rvm: 2.4
env: DB=mariadb10.0
addons:
Expand Down

0 comments on commit ec1dac4

Please sign in to comment.