mirror of
https://github.com/OregonCore/OregonCore
synced 2026-08-18 00:23:08 -04:00
Settup Travis-CI
This commit is contained in:
parent
e3f1cfab5c
commit
70dbe99cf9
4 changed files with 80 additions and 6 deletions
72
.travis.yml
Normal file
72
.travis.yml
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
language: cpp
|
||||
compiler:
|
||||
- clang
|
||||
|
||||
# whitelisted packages can be obtained quickly without downloading
|
||||
# doxygen is out of date, tho so we download its binaries
|
||||
addons:
|
||||
mariadb: '10.0'
|
||||
apt:
|
||||
packages:
|
||||
- cmake
|
||||
- build-essential
|
||||
- cppcheck
|
||||
- git
|
||||
- make
|
||||
- binutils-dev
|
||||
- openssl
|
||||
- libssl-dev
|
||||
- zlib1g-dev
|
||||
- zip
|
||||
- unzip
|
||||
- php5-cli
|
||||
- php5-mysql
|
||||
|
||||
git:
|
||||
depth: 1
|
||||
|
||||
before_install:
|
||||
- sudo apt-get -qq install mariadb-client libace-dev
|
||||
- test "$TRAVIS_PULL_REQUEST" == "false"
|
||||
- curl -o doxygen.tar.gz https://oregon-core.net/travis/doxygen.tar.gz
|
||||
- tar xzf doxygen.tar.gz
|
||||
- sudo install -m 755 doxygen /usr/bin
|
||||
- sudo install -m 755 doxyindexer /usr/bin
|
||||
|
||||
install:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake .. -DSERVERS=1 -DSCRIPTS=1 -DWITH_DOCS=1 -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0
|
||||
# we have 1.5 cpu so 2 jobs at a time are sufficient
|
||||
- make -j2
|
||||
|
||||
# apply all updates to db and catch possible errors
|
||||
script:
|
||||
- cd $TRAVIS_BUILD_DIR/sql
|
||||
- mysql -u root --password='' < create_mysql.sql
|
||||
- mysql -u oregon -poregon realmd < realmd.sql
|
||||
- mysql -u oregon -poregon characters < characters.sql
|
||||
- mysql -u oregon -poregon world < world.sql
|
||||
- curl --retry 3 -o OregonDatabase.zip https://oregon-core.net/travis/OregonDatabase.zip
|
||||
- unzip OregonDatabase.zip
|
||||
- mysql -u oregon -poregon world < OregonDatabase.sql
|
||||
- cat updates/realmd/*.sql | mysql -u oregon -poregon realmd
|
||||
- cat updates/characters/*.sql | mysql -u oregon -poregon characters
|
||||
- cat updates/world/*.sql | mysql -u oregon -poregon world
|
||||
- curl --retry 3 -o documentation.sql https://oregon-core.net/travis/documentation.sql
|
||||
|
||||
# generate and deploy doxygen documentation now
|
||||
after_success:
|
||||
- test "$TRAVIS_PULL_REQUEST" == "false"
|
||||
- echo 'create database documentation' | mysql -u root --password=''
|
||||
- mysql -u root --password='' documentation < documentation.sql
|
||||
- cd $TRAVIS_BUILD_DIR/build
|
||||
- make docs 2> /dev/null
|
||||
- cd ../doc/doxygen/Database
|
||||
- php generator.php
|
||||
- cd ../../../build
|
||||
- make docs 2> /dev/null
|
||||
- cd doc/html
|
||||
- zip -q -r -9 html.zip ./*
|
||||
- export URL="https://oregon-core.net/Deploy?secret=$TRAVIS_SECRET"
|
||||
- curl -F 'userfile=@html.zip' $URL
|
||||
|
|
@ -38,7 +38,7 @@ PROJECT_NAME = "OregonCore"
|
|||
# could be handy for archiving the generated documentation or if some version
|
||||
# control system is used.
|
||||
|
||||
PROJECT_NUMBER = "@rev_hash_str@-git (@rev_id_str@)"
|
||||
PROJECT_NUMBER = "@rev_hash_str@-git"
|
||||
|
||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||
# for a project that appears at the top of each page and should give viewer a
|
||||
|
|
@ -675,8 +675,7 @@ FILE_VERSION_FILTER =
|
|||
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
|
||||
# tag is left empty.
|
||||
|
||||
LAYOUT_FILE =
|
||||
#@CMAKE_SOURCE_DIR@/doc/DoxyLayout.xml
|
||||
LAYOUT_FILE = @CMAKE_SOURCE_DIR@/doc/doxygen/DoxyLayout.xml
|
||||
|
||||
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
|
||||
# the reference definitions. This must be a list of .bib files. The .bib
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Welcome to OregonCore!
|
||||
Welcome to OregonCore! [](https://travis-ci.org/OregonCore/OregonCore)
|
||||
======================
|
||||
|
||||
OregonCore is a piece of software that targets emulation of a World of Warcraft: The Burning Crusade game server. Our goal is to create a stable MMO framework and to help teach and learn development among our community. OregonCore has sustained itself with its tight knit community of developers, testers and bug reporters and thanks all those who have been involved with the project over the years.
|
||||
|
|
|
|||
|
|
@ -24,11 +24,14 @@ ini_set("precision", "4");
|
|||
|
||||
define ("MYSQL_DSN", "mysql:host=127.0.0.1");
|
||||
define ("MYSQL_USR", "root");
|
||||
define ("MYSQL_PWD", "root");
|
||||
define ("MYSQL_PWD", "");
|
||||
define ("WRAPPER_NAMESPACE", "Database::");
|
||||
define ("TABSIZE", 4);
|
||||
|
||||
use function sprintf as f;
|
||||
function f()
|
||||
{
|
||||
return call_user_func_array('sprintf', func_get_args());
|
||||
}
|
||||
|
||||
$schemas = array ("realmd", "characters", "world");
|
||||
$Outputs = array ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue