1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-12 13:37:46 +00:00
sapphire/.travis.yml

35 lines
1.1 KiB
YAML
Raw Normal View History

2017-08-09 16:36:19 +02:00
language: c++
sudo: enabled
before_install:
2017-08-09 17:49:09 +01:00
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
2017-08-09 17:23:02 +02:00
- sudo add-apt-repository universe
2017-08-09 17:26:34 +02:00
- sudo apt-get update
2017-08-09 17:49:09 +01:00
- 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
2017-08-10 18:07:35 +01:00
- sudo apt-get install libboost-dev libboost-all-dev libmysqlclient-dev
2017-08-09 16:36:19 +02:00
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
2017-08-11 02:48:56 +01:00
- ${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