diff --git a/.travis.yml b/.travis.yml index 940ca5116..5085c19ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ addons: services: - mysql + - docker git: depth: 10 @@ -73,3 +74,11 @@ jobs: - source ./apps/ci/ci-install-modules.sh script: - source ./apps/ci/ci-compile.sh + + - stage: run + env: TRAVIS_BUILD_ID="3" + script: + - ./apps/ci/docker/ci-docker-config.sh + - ./bin/acore-docker-generate-etc + - ./bin/acore-docker-build-no-scripts + - docker-compose up -d ac-database diff --git a/apps/ci/docker/.env.dist b/apps/ci/docker/.env.dist new file mode 100644 index 000000000..3a5f28997 --- /dev/null +++ b/apps/ci/docker/.env.dist @@ -0,0 +1,11 @@ +WORLDSERVER_DATA=./docker/worldserver/data +WORLDSERVER_ETC=./docker/worldserver/etc +WORLDSERVER_LOGS=./docker/worldserver/logs + +AUTHSERVER_ETC=./docker/authserver/etc +AUTHSERVER_LOGS=./docker/authserver/logs + +WORLD_EXTERNAL_PORT=8085 +AUTH_EXTERNAL_PORT=3724 +DB_EXTERNAL_PORT=9000 +DB_ROOT_PASSWORD=password diff --git a/apps/ci/docker/ci-docker-config.sh b/apps/ci/docker/ci-docker-config.sh new file mode 100755 index 000000000..f3d6e2092 --- /dev/null +++ b/apps/ci/docker/ci-docker-config.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cp apps/ci/docker/.env.dist .env