Skip to content

Commit

Permalink
Add big endian environment to Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
junaruga committed Dec 6, 2017
1 parent 51665eb commit cc561e1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ matrix:
addons:
hosts:
- mysql2gem.example.com
# Test on big endian environment.
- language: generic
os: linux
rvm: ""
services: docker
env: DOCKER=true # just as mark.
before_install: true
addons: {}
install: docker build -t mysql2 -f .travis_Dockerfile .
script: docker run -t mysql2
fast_finish: true
allow_failures:
- rvm: ruby-head
Expand Down
24 changes: 24 additions & 0 deletions .travis_Dockerfile
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"]

0 comments on commit cc561e1

Please sign in to comment.