sudo: required

language: bash

services:
  - docker

addons:
  apt:
    packages:
      - docker-ce

env:
  - ES_VERSION=6.0.0
  - ES_VERSION=5.6.4

install:
  # Build and package the dictionary before testing
  - script/build.sh

  # Build the Docker image that we're going to use for testing
  - docker build --build-arg ES_VERSION=${ES_VERSION} -t ${TRAVIS_REPO_SLUG} .

before_script: >
  docker run \
    -d \
    -p 127.0.0.1:9200:9200 \
    -e "discovery.type=single-node" \
    -e "xpack.security.enabled=false" \
    ${TRAVIS_REPO_SLUG}

script:
  # Wait for Elasticsearch to start accepting incoming connections
  - wget --retry-connrefused --tries=30 --wait=1 --spider --quiet http://127.0.0.1:9200/

  # Start testing!
  - script/test.sh

sudo: required

language: bash

services:
  - docker

addons:
  apt:
    packages:
      - docker-ce

env:
  - ES_VERSION=6.5.1
  - ES_VERSION=6.4.3
  - ES_VERSION=6.3.2
  - ES_VERSION=6.2.4
  - ES_VERSION=6.1.4
  - ES_VERSION=6.0.1
  - ES_VERSION=5.6.13

install:
  # Build and package the dictionary before testing
  - script/build.sh

  # Build the Docker image that we're going to use for testing
  - docker build --build-arg ES_VERSION=${ES_VERSION} -t ${TRAVIS_REPO_SLUG} .

before_script: >
  docker run \
    -d \
    -p 127.0.0.1:9200:9200 \
    -e "discovery.type=single-node" \
    -e "xpack.security.enabled=false" \
    ${TRAVIS_REPO_SLUG}

script:
  # Wait for Elasticsearch to start accepting incoming connections
  - wget --retry-connrefused --tries=30 --wait=1 --spider --quiet http://127.0.0.1:9200/

  # Start testing!
  - script/test.sh

Add more CI testing targets
Add more CI testing targets
