Sha256: 4b34b99a8101530a881336e89b18913b64a106ba45f96a418c61ae2fe7d3c18f

Contents?: true

Size: 1.83 KB

Versions: 3

Compression:

Stored size: 1.83 KB

Contents

language: java

jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7

env:
  global:
    - MONGO_DATABASE=my_database
    - MONGO_COLLECTION=my_collection
    - MONGO_URI=mongodb://localhost:27017/my_database

sudo: required

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

# Work around fix for buffer overflow error on OpenJDK7
# ref: https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
before_install:
  - cat /etc/hosts # optionally check the content *before*
  - sudo hostname "$(hostname | cut -c1-63)"
  - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
  - cat /etc/hosts # optionally check the content *after*

install:
  - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
  - echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
  - sudo apt-get update
  - sudo apt-get install -y --force-yes mongodb-org
  - mongod -version
  - curl --create-dirs -o ~/.embulk/bin/embulk -L "https://dl.bintray.com/embulk/maven/embulk-0.8.8.jar"
  - chmod +x ~/.embulk/bin/embulk
  - export PATH="$HOME/.embulk/bin:$PATH"
  - embulk --version

before_script:
  - echo "Wait mongodb wakeup"
  - sleep 10
  - mkdir -p ./tmp
  - date

script:
  - ./gradlew check
  - ./gradlew package
  - mongoimport --db $MONGO_DATABASE --collection $MONGO_COLLECTION --type json --drop src/test/resources/my_collection.jsonl
  - |
    for target in basic full id_field_name
    do
      embulk run -L . src/test/resources/${target}.yml
      cat tmp/${target}000.00.csv
      cmp tmp/${target}000.00.csv src/test/resources/${target}_expected.csv
    done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
embulk-input-mongodb-0.4.0 .travis.yml
embulk-input-mongodb-0.3.2 .travis.yml
embulk-input-mongodb-0.3.1 .travis.yml