-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM centos:7 | ||
|
||
WORKDIR /build | ||
COPY . . | ||
|
||
CMD sh .travis_centos.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
# Install dependency packages and start mysqld service. | ||
sh .travis_setup_centos.sh | ||
|
||
bundle install --path vendor/bundle --without benchmarks development | ||
|
||
# USER environment value is not set as a default in the container environment. | ||
export USER=root | ||
|
||
bundle exec rake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
|
||
yum -y update | ||
yum -y install epel-release | ||
# The options are to install faster. | ||
yum -y install \ | ||
--setopt=deltarpm=0 \ | ||
--setopt=install_weak_deps=false \ | ||
--setopt=tsflags=nodocs \ | ||
mariadb-server \ | ||
mariadb-devel \ | ||
ruby-devel \ | ||
git \ | ||
gcc \ | ||
gcc-c++ \ | ||
make | ||
gem update --system > /dev/null | ||
gem install bundler | ||
|
||
MYSQL_TEST_LOG="$(pwd)/mysql.log" | ||
|
||
mysql_install_db \ | ||
--log-error="${MYSQL_TEST_LOG}" | ||
/usr/libexec/mysqld \ | ||
--user=root \ | ||
--log-error="${MYSQL_TEST_LOG}" \ | ||
--ssl & | ||
sleep 3 | ||
cat ${MYSQL_TEST_LOG} | ||
|
||
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters