Skip to content

Commit ec1dac4

Browse files
committed
Migrate Ruby 2.0.0 case in Travis to GitHub Actions.
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.
1 parent 70ab0dc commit ec1dac4

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/container.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ on: [push, pull_request]
55
jobs:
66
build:
77
name: >-
8-
${{ matrix.distro }} ${{ matrix.image }}
8+
${{ matrix.distro }} ${{ matrix.image }} ${{ matrix.name_extra || '' }}
99
runs-on: ubuntu-20.04 # focal
1010
continue-on-error: ${{ matrix.allow-failure || false }}
1111
strategy:
1212
matrix:
1313
include:
14-
- {distro: centos, image: 'centos:7'}
14+
# CentOS 7 system Ruby is the fixed version 2.0.0.
15+
- {distro: centos, image: 'centos:7', name_extra: 'ruby 2.0.0'}
1516
# Fedora latest stable version
1617
# Allow failure due to the following test failures.
1718
# https://github.com/brianmario/mysql2/issues/965

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sudo: required
21
dist: trusty
32
language: ruby
43
bundler_args: --without development
@@ -9,17 +8,8 @@ before_install:
98
- gem update bundler
109
- gem --version
1110
- bash ci/setup.sh
12-
addons:
13-
hosts:
14-
- mysql2gem.example.com
15-
apt:
16-
packages:
17-
- mysql-server-5.6
18-
- mysql-client-core-5.6
19-
- mysql-client-5.6
2011
matrix:
2112
include:
22-
- rvm: 2.0.0
2313
- rvm: 2.4
2414
env: DB=mariadb10.0
2515
addons:

0 commit comments

Comments
 (0)