Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into propertieslayout
- Loading branch information
Showing
2,915 changed files
with
519,289 additions
and
37,479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
############## | ||
# Setup ccache | ||
############## | ||
export CCACHE_TEMPDIR=/tmp | ||
ccache -M 500M | ||
ccache -z | ||
|
||
############################ | ||
# Setup the (c)test environment | ||
############################ | ||
export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so | ||
export CTEST_BUILD_COMMAND="/usr/bin/ninja" | ||
export CTEST_PARALLEL_LEVEL=1 | ||
|
||
############################## | ||
# Variables for output styling | ||
############################## | ||
|
||
bold=$(tput bold) | ||
endbold=$(tput sgr0) | ||
|
||
########### | ||
# Configure | ||
########### | ||
pushd /root/QGIS > /dev/null | ||
mkdir -p build | ||
|
||
pushd build > /dev/null | ||
|
||
echo "travis_fold:start:cmake" | ||
echo "${bold}Running cmake...${endbold}" | ||
cmake \ | ||
-GNinja \ | ||
-DWITH_STAGED_PLUGINS=ON \ | ||
-DWITH_GRASS=OFF \ | ||
-DSUPPRESS_QT_WARNINGS=ON \ | ||
-DENABLE_MODELTEST=ON \ | ||
-DENABLE_PGTEST=ON \ | ||
-DWITH_QSPATIALITE=ON \ | ||
-DWITH_QWTPOLAR=OFF \ | ||
-DWITH_APIDOC=OFF \ | ||
-DWITH_ASTYLE=OFF \ | ||
-DWITH_DESKTOP=ON \ | ||
-DWITH_BINDINGS=ON \ | ||
-DDISABLE_DEPRECATED=ON \ | ||
-DCXX_EXTRA_FLAGS=${CLANG_WARNINGS} .. | ||
echo "travis_fold:end:cmake" | ||
|
||
####### | ||
# Build | ||
####### | ||
echo "travis_fold:start:ninja-build.1" | ||
echo "${bold}Building QGIS...${endbold}" | ||
${CTEST_BUILD_COMMAND} | ||
echo "travis_fold:end:ninja-build.1" | ||
|
||
############################ | ||
# Restore postgres test data | ||
############################ | ||
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf | ||
export PGUSER=docker | ||
export PGHOST=postgres | ||
export PGPASSWORD=docker | ||
export PGDATABASE=qgis_test | ||
|
||
pushd /root/QGIS > /dev/null | ||
/root/QGIS/tests/testdata/provider/testdata_pg.sh | ||
popd > /dev/null # /root/QGIS | ||
|
||
########### | ||
# Run tests | ||
########### | ||
python3 /root/QGIS/.ci/travis/scripts/ctest2travis.py xvfb-run ctest -V -E "$(cat /root/QGIS/.ci/travis/linux/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S /root/QGIS/.ci/travis/travis.ctest --output-on-failure | ||
|
||
######################## | ||
# Show ccache statistics | ||
######################## | ||
echo "travis_fold:start:ccache.stats" | ||
echo "ccache statistics" | ||
ccache -s | ||
echo "travis_fold:end:ccache.stats" | ||
|
||
popd > /dev/null # build | ||
popd > /dev/null # /root/QGIS | ||
|
||
[ -r /tmp/ctest-important.log ] && cat /tmp/ctest-important.log || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.