1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 23:57:46 +00:00

lets see if it imports this time..

This commit is contained in:
Tahir Akhlaq 2017-08-11 03:46:41 +01:00
parent d4cb82d82b
commit ba5a385d29
2 changed files with 7 additions and 20 deletions

View file

@ -6,29 +6,17 @@ before_install:
- sudo apt-get update
- sudo apt-get install -y software-properties-common
- sudo apt-get update
- sudo apt-get install gcc-4.9 g++-4.9 gcc-4.9-multilib g++-4.9-multilib
- sudo apt-get install libboost-dev libboost-all-dev libmysqlclient-dev
- sudo apt-get install gcc-4.9 g++-4.9 gcc-4.9-multilib g++-4.9-multilib cmake3 -y
- sudo apt-get install libboost-dev libboost-all-dev libmysqlclient-dev -y
compiler:
- gcc
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
# Go to the Root directory
- cd ..
# Build steps
script:
- mkdir build
- cd build
- ${DEPS_DIR}/cmake/bin/cmake .. -DSAPPHIRE_BOOST_VER="1.54.0" -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_C_COMPILER=gcc-4.9 && make
- sh ./sql_import.sh
- cmake .. -DSAPPHIRE_BOOST_VER="1.54.0" -DCMAKE_CXX_COMPILER=g++-4.9 -DCMAKE_C_COMPILER=gcc-4.9 && make -j 3
- cd ..
- bash sql_import.sh

View file

@ -1,6 +1,5 @@
#!/bin/bash
cd sql
mysql -u root -e 'drop database sapphire;'
mysql -u root -e 'create database sapphire;'
for f in *.sql
do
@ -10,6 +9,6 @@ for f in *.sql
CODE=$?
if [ $CODE -ne 0 ]; then exit $CODE; fi
done
mysql sapphire -u root < update.sql -f
#mysql sapphire -u root < update.sql -f
echo 'todo: test update sql'
cd ..