1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-21 17:17:06 +02:00

Fix coverity build

This commit is contained in:
Arseniy Shestakov 2017-06-14 13:45:46 +03:00
parent fbbd1e1864
commit ee8de57d2b

View File

@ -64,13 +64,20 @@ before_install:
before_script:
- mkdir build
- cd build
- test $TRAVIS_BRANCH != coverity_scan || exit 0
- source $TRAVIS_BUILD_DIR/CI/get_package_name.sh
- cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS -DPACKAGE_NAME_SUFFIX:STRING="$VCMI_PACKAGE_NAME_SUFFIX" -DPACKAGE_FILE_NAME:STRING="$VCMI_PACKAGE_FILE_NAME"
- if [[ $TRAVIS_BRANCH != 'coverity_scan' ]];
then
source $TRAVIS_BUILD_DIR/CI/get_package_name.sh;
cmake -G "Unix Makefiles" .. $VCMI_CMAKE_FLAGS -DPACKAGE_NAME_SUFFIX:STRING="$VCMI_PACKAGE_NAME_SUFFIX" -DPACKAGE_FILE_NAME:STRING="$VCMI_PACKAGE_FILE_NAME";
fi
script:
- test $TRAVIS_BRANCH != coverity_scan || exit 0
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cd ..; xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release CONFIGURATION_BUILD_DIR=..; cd build; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]];
then
cd ..;
xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release CONFIGURATION_BUILD_DIR=..;
cd build;
fi
- make -j2
after_success: