sudo: required

services:
  - docker

language: go

env:
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb:3.1
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb/arangodb:latest
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb-preview:latest
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb/arangodb-preview:latest

script: make $TEST_SUITE

# Install Docker CE
before_install:
  - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  - sudo apt-get update
  - sudo apt-get -y install docker-ce
sudo: required

services:
  - docker

language: go

env:
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb:3.1
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb:latest
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb/arangodb:latest
  - TEST_SUITE=run-tests-local-process ARANGODB=arangodb/arangodb-preview:latest
  - TEST_SUITE=run-tests-docker        ARANGODB=arangodb/arangodb-preview:latest

script: make $TEST_SUITE

# 3.1 cluster startup is not always a success, causing lots of false positive.
matrix:
  allow_failures:
    - env: TEST_SUITE=run-tests-local-process ARANGODB=arangodb:3.1
    - env: TEST_SUITE=run-tests-docker        ARANGODB=arangodb:3.1

# Install Docker CE
before_install:
  - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  - sudo apt-get update
  - sudo apt-get -y install docker-ce
Allow for failures in 3.1 because of startup issues under load
Allow for failures in 3.1 because of startup issues under load
