1
0

Merge pull request #1687 from mc-server/StyleCheckTravis

Style check travis
This commit is contained in:
Mattes D 2014-12-25 20:23:32 +01:00
commit 8730643720
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,9 @@ before_install:
install:
# g++4.8 and clang
- sudo apt-get install -qq g++-4.8
# lua, needed for style checking and possibly later on for bindings generation
- sudo apt-get install -qq lua5.1
# g++4.8
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; export CC="gcc-4.8"; fi

View File

@ -7,6 +7,9 @@ export MCSERVER_BUILD_ID=$TRAVIS_JOB_NUMBER
export MCSERVER_BUILD_DATETIME=`date`
cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1;
cd src
lua CheckBasicStyle.lua
cd ..
make -j 2;
make -j 2 test;
cd MCServer/;