Sha256: 0f8020c96e0365bdf3d2871a57468f8981cf749ce1410b9debcc20f206ebfda3

Contents?: true

Size: 1.53 KB

Versions: 2

Compression:

Stored size: 1.53 KB

Contents

language: java

jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7

sudo: required

# 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
  - mongoimport --db my_database --collection my_collection --type json --drop src/test/resources/my_collection.jsonl
  - ./gradlew package
  - mkdir -p ./tmp

script:
  - embulk run -L . src/test/resources/basic.yml
  - cat tmp/basic000.00.csv
  - cmp tmp/basic000.00.csv src/test/resources/basic_expected.csv || exit 1
  - embulk run -L . src/test/resources/full.yml
  - cat tmp/full000.00.csv
  - cmp tmp/full000.00.csv src/test/resources/full_expected.csv || exit 1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-input-mongodb-0.3.0 .travis.yml
embulk-input-mongodb-0.2.0 .travis.yml