代码拉取完成,页面将自动刷新
sudo: false
dist: bionic
language: cpp
compiler:
- clang
git:
depth: 1
services:
- mysql
addons:
apt:
update: true
sources:
packages:
- libssl-dev
- libmysqlclient-dev
- libreadline-dev
- zlib1g-dev
- libbz2-dev
- libboost-dev
- libboost-thread-dev
- libboost-system-dev
- libboost-filesystem-dev
- libboost-program-options-dev
- libboost-regex-dev
- libboost-iostreams-dev
# For data archive
- p7zip
before_install:
- git config user.email "[email protected]" && git config user.name "Travis CI"
- git tag -a -m "Travis build" init
# Get cmake 3.16.2
- sudo mkdir /opt/cmake
- wget https://cmake.org/files/v3.16/cmake-3.16.2-Linux-x86_64.sh
- sudo sh cmake-3.16.2-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
install:
- mysql -uroot -e 'create database test_mysql'
- mkdir bin logs data
- cd bin
- /opt/cmake/bin/cmake ../ -DPLAYERBOT=0 -DTOOLS=0 -DSCRIPTS=dynamic -DTESTS=0 -DCMAKE_BUILD_TYPE=Debug -DWITH_COREDEBUG=1 -DCMAKE_INSTALL_PREFIX=check_install
- cd ..
script:
- $CXX --version
- mysql -uroot < sql/create/create_mysql.sql
- mysql -utrinity -ptrinity auth < sql/base/auth_database.sql
- ./contrib/check_updates.sh auth auth localhost
- mysql -utrinity -ptrinity characters < sql/base/characters_database.sql
- ./contrib/check_updates.sh characters characters localhost
- mysql -utrinity -ptrinity logs < sql/base/logs_database.sql
- ./contrib/check_updates.sh logs logs localhost
- mysql -utrinity -ptrinity world < sql/base/dev/world_database.sql
- cat sql/updates/world/*.sql | mysql -utrinity -ptrinity world
- mysql -uroot < sql/create/drop_mysql.sql
- cd bin
- make -j 4 -k && make install
- cd check_install
- ls
- cd bin
- ./authserver --version
- ./worldserver --version
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。