dist: trusty
group: beta
language: ruby

script:
  - bundle exec rake compile || bundle exec rake compile
  - bundle exec rake test
  - ITER=10 bundle exec rake bench:all
os:
  - linux
  - osx
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0
  - ruby-head

env:
  - CC=gcc
  - CC=clang
matrix:
  allow_failures:
    - os: osx
      rvm: ruby-head
  include:
    - name: powerpc
      language: generic
      before_install: |
        docker run --rm --privileged multiarch/qemu-user-static:register --reset &&
          docker build --rm -t ffi-powerpc -f spec/env/Dockerfile.powerpc .
      script: |
        docker run --rm -t -v `pwd`:/ffi ffi-powerpc
    - name: armhf
      language: generic
      before_install: |
        docker run --rm --privileged multiarch/qemu-user-static:register --reset &&
          docker build --rm -t ffi-armhf -f spec/env/Dockerfile.armhf .
      script: |
        docker run --rm -t -v `pwd`:/ffi ffi-armhf
after_failure:
  - "find build -name mkmf.log | xargs cat"

dist: trusty
group: beta
language: ruby

script:
  - bundle exec rake compile || bundle exec rake compile
  - bundle exec rake test
  - ITER=10 bundle exec rake bench:all
os:
  - linux
  - osx
rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0
  - ruby-head

env:
  - CC=gcc
  - CC=clang
matrix:
  allow_failures:
    - os: osx
      rvm: ruby-head
    - os: osx
      rvm: 2.3.8
  include:
    - name: powerpc
      language: generic
      before_install: |
        docker run --rm --privileged multiarch/qemu-user-static:register --reset &&
          docker build --rm -t ffi-powerpc -f spec/env/Dockerfile.powerpc .
      script: |
        docker run --rm -t -v `pwd`:/ffi ffi-powerpc
    - name: armhf
      language: generic
      before_install: |
        docker run --rm --privileged multiarch/qemu-user-static:register --reset &&
          docker build --rm -t ffi-armhf -f spec/env/Dockerfile.armhf .
      script: |
        docker run --rm -t -v `pwd`:/ffi ffi-armhf
after_failure:
  - "find build -name mkmf.log | xargs cat"

Set ruby-2.3.8 to allow_failures because of ffi unrelated error
Set ruby-2.3.8 to allow_failures because of ffi unrelated error

The error occures while:
  rvm use 2.3.8 --install --binary --fuzzy

Text is:
  Libraries missing for ruby-2.3.8: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib,/usr/local/opt/openssl/lib/libssl.1.0.0.dylib. Refer to your system manual for installing libraries
  Mounting remote ruby failed with status 10, stopping installation.

See: https://travis-ci.org/ffi/ffi/builds/634215671
