Sha256: 67b119f868240837939e1785dbd3a36b58ad2018726706b3543046eb53548c19

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

sudo: required
services:
  - docker

env:
  global:
    DOCKER_COMPOSE_VERSION: 1.8.1
  matrix:
    - TARGET_RUBY_VERSION=2.1 BUNDLE_GEMFILE=/app/Gemfile
    - TARGET_RUBY_VERSION=2.2 BUNDLE_GEMFILE=/app/Gemfile
    - TARGET_RUBY_VERSION=2.3 BUNDLE_GEMFILE=/app/Gemfile
    - TARGET_RUBY_VERSION=2.4 BUNDLE_GEMFILE=/app/Gemfile
    - TARGET_RUBY_VERSION=2.1 BUNDLE_GEMFILE=/app/gemfiles/fluentd_v0.12.gemfile
    - TARGET_RUBY_VERSION=2.2 BUNDLE_GEMFILE=/app/gemfiles/fluentd_v0.12.gemfile
    - TARGET_RUBY_VERSION=2.3 BUNDLE_GEMFILE=/app/gemfiles/fluentd_v0.12.gemfile
    - TARGET_RUBY_VERSION=2.4 BUNDLE_GEMFILE=/app/gemfiles/fluentd_v0.12.gemfile

before_install:
  #- sudo apt-get update
  #- sudo apt-get install -y docker-engine
  - sudo rm /usr/local/bin/docker-compose
  - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m) > docker-compose
  - chmod +x docker-compose
  - sudo mv docker-compose /usr/local/bin/
  - test -f data/GeoLite2-City.mmdb || curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz | gunzip > data/GeoLite2-City.mmdb

install: true

before_script:
  - echo BUNDLE_GEMFILE=${BUNDLE_GEMFILE} > env
  - docker-compose build test-ruby${TARGET_RUBY_VERSION}
  - docker-compose ps
  - docker-compose up -d test-ruby${TARGET_RUBY_VERSION}
  - docker-compose exec test-ruby${TARGET_RUBY_VERSION} bundle install

script:
  - docker-compose exec test-ruby${TARGET_RUBY_VERSION} bundle exec rake test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-geoip-0.7.0 .travis.yml