feat(CI): add docker to travis build (#2347)

This commit is contained in:
Francesco Borzì
2019-10-14 07:50:25 +02:00
committed by Stoabrogga
parent 003e8fa459
commit 4e7e98b542
3 changed files with 23 additions and 0 deletions

View File

@@ -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

11
apps/ci/docker/.env.dist Normal file
View File

@@ -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

View File

@@ -0,0 +1,3 @@
#!/bin/bash
cp apps/ci/docker/.env.dist .env