mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-13 10:42:56 +01:00
376c417ad1
* Improve CMake module file * Fix packaging on Win32 * appveyor: Test install and package target * Travis-CI: Test install and package target * Update documentation for working with CMake * Simplify g3loggerConfig.cmake * Add Doc Prerequisites section
28 lines
627 B
Bash
Executable File
28 lines
627 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ev
|
|
set -x
|
|
unzip -o 3rdParty/gtest/gtest-1.7.0.zip -d 3rdParty/gtest
|
|
|
|
|
|
mkdir -p build_travis
|
|
cd build_travis
|
|
cmake -DCMAKE_CXX_FLAGS=-std=c++14 -DADD_G3LOG_BENCH_PERFORMANCE=ON -DADD_G3LOG_UNIT_TEST=ON -DCMAKE_INSTALL_PREFIX=./install -DCPACK_PACKAGING_INSTALL_PREFIX=/opt/g3log ..
|
|
cmake --build . --target install
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
cpack -G "ZIP"
|
|
unzip g3log-*-Darwin.zip
|
|
fi
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
cpack -G "DEB;TGZ"
|
|
tar zxvf g3log-*-Linux.tar.gz
|
|
fi
|
|
|
|
#makeArg=`grep -c ^processor /proc/cpuinfo`
|
|
|
|
make -j
|
|
/bin/bash ../scripts/runAllTests.sh
|
|
|