forked from cmangos/mangos-tbc
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcircle.yml
33 lines (30 loc) · 1.16 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
dependencies:
post:
# We need CMake 2.8.12 minimum
- sudo apt-get install software-properties-common
- sudo add-apt-repository --yes ppa:george-edison55/cmake-3.x
- sudo apt-get update
- sudo apt-get install cmake
checkout:
post:
- git submodule sync
- git submodule update --init
- git clone https://github.com/NostalriusTBC/Database.git database
- git clone https://github.com/NostalriusTBC/Vagrant.git vagrant
database:
override:
- echo "export CORE_DIRECTORY=\"`pwd`\"" >> vagrant/vagrant/config.sh
- echo "export DATABASE_DIRECTORY=\"`pwd`/database\"" >> vagrant/vagrant/config.sh
- echo "export VAGRANT_SCRIPTS_DIR=\"`pwd`/vagrant/vagrant\"" >> vagrant/vagrant/config.sh
- echo "export INSTALL_PREFIX=\"`pwd`/install\"" >> vagrant/vagrant/config.sh
- mkdir install
- echo ". ./vagrant/vagrant/config.sh" > setup_db.sh
- echo "./vagrant/vagrant/setup_world_db.sh | mysql -u ubuntu circle_test" >> setup_db.sh
- chmod +x setup_db.sh
- ./setup_db.sh
test:
pre:
# Only test (for now): build process.
- mkdir build
- cd build && cmake -DCMAKE_INSTALL_PREFIX=../install ../
- cd build && make