ae45207b29
- Minimum G++ version: 4.8 - Minimum Visual Studio version: VS2012 - Added '-std=c++11' flag to G++ - Removed unused defines - Removed checks for standard library headers - Added CMake detections of '_vsnprintf' and '_snprintf' for Visual Studio 2015 - Removed bnpcap - Force Travis CI to use CMake 3.1.3 and G++5
27 lines
No EOL
714 B
YAML
27 lines
No EOL
714 B
YAML
sudo: required
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
language: cpp
|
|
os: linux
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
- sudo apt-get update --fix-missing
|
|
- sudo apt-get install build-essential zlib1g-dev libmysqlclient-dev liblua5.1-0-dev
|
|
- (cd /tmp && wget http://www.cmake.org/files/v3.1/cmake-3.1.3.tar.gz && tar zxf cmake-3.1.3.tar.gz)
|
|
- (cd /tmp/cmake-3.1.3 && cmake . && make && sudo make install) > /dev/null 2>&1
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get -qq install g++-5
|
|
- export CXX="g++-5" CC="gcc-5"
|
|
- mkdir build
|
|
- cd build
|
|
|
|
script:
|
|
- cmake -D WITH_MYSQL=true -D WITH_LUA=true ../
|
|
- make
|
|
- sudo make install
|
|
- sudo make uninstall |