sudo: false
dist: bionic
language: cpp
compiler: gcc

services:
  - docker

install: true

before_script:
  - cd extras/docker/arcemu_build
  - docker build -t arcemu_build .
  - cd ../../../

script:
  - mkdir bin
  - docker run -t -i -v `pwd`/bin:/srv/build/arcemu/bin arcemu_build
  - ls -la ./bin

sudo: false
dist: bionic
language: cpp
compiler: gcc

services:
  - docker

install: true

before_script:
  - cd extras/docker/arcemu_build
  - docker build -t arcemu_build .
  - cd ../../../

script:
  - mkdir bin
  - docker run -t -i -v `pwd`/bin:/srv/build/arcemu/bin arcemu_build
  - ls -la ./bin
  - mkdir docker_build
  - cp -r extras/docker/arcemu_logon docker_build/
  - cp -r extras/docker/arcemu_world docker_build/
  - cp bin/logon docker_build/arcemu_logon/srv/arcemu_logon/
  - cp bin/world docker_build/arcemu_world/srv/arcemu_world/
  - cp -r bin/modules docker_build/arcemu_world/srv/arcemu_world/
  - cd docker_build/arcemu_logon
  - docker build --no-cache -t arcemu_logon .
  - cd ../arcemu_world
  - docker build --no-cache -t arcemu_world .

Build the logon and world docker images.
CI: Build the logon and world docker images.
