forked from brianmario/mysql2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add big endian environment to Travis CI.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# To test on big endian environment. | ||
FROM s390x/ubuntu | ||
|
||
WORKDIR /work | ||
COPY . . | ||
|
||
# MariaDB 10.2 | ||
RUN export DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
-o Dpkg::Options::='--force-confnew' \ | ||
mariadb \ | ||
mariadb-server \ | ||
mariadb-server-10.2 \ | ||
libmariadbclient18 \ | ||
ruby \ | ||
# lscpu is a part of util-linux. | ||
util-linux | ||
RUN lscpu | grep "Byte Order" | grep "Big Endian" | ||
RUN echo "127.0.0.1 mysql2gem.example.com" >> /etc/hosts | ||
RUN gem install bundler | ||
RUN bundle install --path vendor/bundle --without benchmarks development | ||
|
||
CMD ["bundle exec rake"] |