sudo: false
dist: trusty
language: generic

services:
  - docker

install:
  # Setup tools.
  - sudo ./tools/setup_tools.sh
  # Build the images.
  - echo -e "./server/interop-server.sh build\n./client/interop-client.sh build" | parallel

script:
  # Test server.
  - ./server/interop-server.sh create_db
  - ./server/interop-server.sh test
  # Test client.
  - ./server/interop-server.sh load_test_data
  - ./server/interop-server.sh up_d
  - ./client/interop-client.sh test
  - ./server/interop-server.sh down
  # Check formatting.
  - ./tools/format.sh --all

deploy:
  # Push master branch docker images to dockerhub.
  provider: script
  script: bash tools/deploy.sh
  skip_cleanup: true
  on:
    branch: master

sudo: false
dist: trusty
language: generic

services:
  - docker

install:
  # Setup tools.
  - sudo ./tools/setup_tools.sh
  # Build the images.
  - ./server/interop-server.sh build
  - ./client/interop-client.sh build

script:
  # Test server.
  - ./server/interop-server.sh create_db
  - ./server/interop-server.sh test
  # Test client.
  - ./server/interop-server.sh load_test_data
  - ./server/interop-server.sh up_d
  - ./client/interop-client.sh test
  - ./server/interop-server.sh down
  # Check formatting.
  - ./tools/format.sh --all

deploy:
  # Push master branch docker images to dockerhub.
  provider: script
  script: bash tools/deploy.sh
  skip_cleanup: true
  on:
    branch: master

Remove parallel build and attempt to rely on cache.
Remove parallel build and attempt to rely on cache.
