.travis.yml in embulk-input-mongodb-0.4.0 vs .travis.yml in embulk-input-mongodb-0.5.0

- old
+ new

@@ -24,11 +24,12 @@ # 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 + - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts + - sudo mv /tmp/hosts /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 @@ -40,17 +41,17 @@ - export PATH="$HOME/.embulk/bin:$PATH" - embulk --version before_script: - echo "Wait mongodb wakeup" - - sleep 10 + - sleep 15 - 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 + - mongoimport --host 127.0.0.1 --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