Skip to content

Commit cab1d34

Browse files
authored
Rename .travis_* files to ci/*. (#1171)
The "ci" is the commonly used keyword not depending on the specific CI services.
1 parent dc0b626 commit cab1d34

File tree

12 files changed

+11
-11
lines changed

12 files changed

+11
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
include:
3131
# Allow failure due to Mysql2::Error: Unknown system variable 'session_track_system_variables'.
3232
- {os: ubuntu-16.04, ruby: 2.4, db: mariadb10.0, allow-failure: true}
33-
# Comment out due to .travis_setup.sh stucking.
33+
# Comment out due to ci/setup.sh stucking.
3434
# - {os: ubuntu-18.04, ruby: 2.4, db: mariadb10.1, allow-failure: false}
3535
# Allow failure due to the issue #1165.
3636
- {os: ubuntu-20.04, ruby: 2.4, db: mariadb10.3, allow-failure: true}
@@ -62,5 +62,5 @@ jobs:
6262
- if: matrix.db != ''
6363
run: echo 'DB=${{ matrix.db }}' >> $GITHUB_ENV
6464
- run: sudo echo "127.0.0.1 mysql2gem.example.com" | sudo tee -a /etc/hosts
65-
- run: bash .travis_setup.sh
65+
- run: bash ci/setup.sh
6666
- run: bundle exec rake

.github/workflows/container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
fail-fast: false
2626
steps:
2727
- uses: actions/checkout@v2
28-
- run: docker build -t mysql2 -f .travis_Dockerfile_${{ matrix.distro }} --build-arg IMAGE=${{ matrix.image }} .
28+
- run: docker build -t mysql2 -f ci/Dockerfile_${{ matrix.distro }} --build-arg IMAGE=${{ matrix.image }} .
2929
# Add the "--cap-add=... --security-opt seccomp=..." options
3030
# as a temporary workaround to avoid the following issue
3131
# in the Fedora >= 34 containers.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ before_install:
88
- gem update --system --quiet || gem update --system 2.7.10 --quiet
99
- gem update bundler
1010
- gem --version
11-
- bash .travis_setup.sh
11+
- bash ci/setup.sh
1212
addons:
1313
hosts:
1414
- mysql2gem.example.com

.travis_Dockerfile_centos renamed to ci/Dockerfile_centos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ RUN yum -yq install \
2222
RUN gem install --no-document "rubygems-update:~>2.7" && update_rubygems > /dev/null
2323
RUN gem install --no-document "bundler:~>1.17"
2424

25-
CMD bash .travis_container.sh
25+
CMD bash ci/container.sh

.travis_Dockerfile_fedora renamed to ci/Dockerfile_fedora

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ RUN dnf -yq install \
2222
rubygem-bigdecimal \
2323
rubygem-bundler
2424

25-
CMD bash .travis_container.sh
25+
CMD bash ci/container.sh

.travis_container.sh renamed to ci/container.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ruby -v
66
bundle install --path vendor/bundle --without benchmarks development
77

88
# Start mysqld service.
9-
bash .travis_setup_container.sh
9+
bash ci/setup_container.sh
1010

1111
bundle exec rake
File renamed without changes.
File renamed without changes.
File renamed without changes.

.travis_setup.sh renamed to ci/setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ fi
2929

3030
# Install MySQL 5.5 if DB=mysql55
3131
if [[ -n ${DB-} && x$DB =~ ^xmysql55 ]]; then
32-
sudo bash .travis_mysql55.sh
32+
sudo bash ci/mysql55.sh
3333
fi
3434

3535
# Install MySQL 5.7 if DB=mysql57
3636
if [[ -n ${DB-} && x$DB =~ ^xmysql57 ]]; then
37-
sudo bash .travis_mysql57.sh
37+
sudo bash ci/mysql57.sh
3838
CHANGED_PASSWORD=true
3939
fi
4040

4141
# Install MySQL 8.0 if DB=mysql80
4242
if [[ -n ${DB-} && x$DB =~ ^xmysql80 ]]; then
43-
sudo bash .travis_mysql80.sh
43+
sudo bash ci/mysql80.sh
4444
CHANGED_PASSWORD=true
4545
fi
4646

@@ -98,7 +98,7 @@ fi
9898

9999
# TODO: get SSL working on OS X in Travis
100100
if ! [[ x$OSTYPE =~ ^xdarwin ]]; then
101-
sudo bash .travis_ssl.sh
101+
sudo bash ci/ssl.sh
102102
sudo service mysql restart
103103
fi
104104

0 commit comments

Comments
 (0)