Skip to content

Commit

Permalink
Merge pull request #38714 from m-kuhn/speedup_ogc_tests
Browse files Browse the repository at this point in the history
Speedup ogc tests
  • Loading branch information
m-kuhn committed Sep 13, 2020
2 parents d5350c6 + 1d37f26 commit 2a3fdf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
1 change: 0 additions & 1 deletion .ci/ogc/Dockerfile
Expand Up @@ -8,7 +8,6 @@ RUN apt-get update \
&& apt-get install -y \
cmake \
ninja-build \
ccache \
clang \
flex \
bison \
Expand Down
9 changes: 3 additions & 6 deletions .ci/ogc/build.sh
Expand Up @@ -3,8 +3,6 @@
mkdir /usr/src/qgis/build
cd /usr/src/qgis/build || exit -1

ccache -s

cmake -GNinja \
-DWITH_QUICK=OFF \
-DWITH_3D=OFF \
Expand All @@ -15,6 +13,7 @@ cmake -GNinja \
-DENABLE_PGTEST=OFF \
-DENABLE_SAGA_TESTS=OFF \
-DENABLE_MSSQLTEST=OFF \
-DENABLE_TESTS=OFF \
-DWITH_QSPATIALITE=OFF \
-DWITH_QWTPOLAR=OFF \
-DWITH_APIDOC=OFF \
Expand All @@ -26,11 +25,9 @@ cmake -GNinja \
-DWITH_ORACLE=OFF \
-DDISABLE_DEPRECATED=ON \
-DCXX_EXTRA_FLAGS="${CLANG_WARNINGS}" \
-DCMAKE_C_COMPILER=/usr/lib/ccache/clang \
-DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \
-DCMAKE_C_COMPILER=/bin/clang \
-DCMAKE_CXX_COMPILER=/bin/clang++ \
-DADD_CLAZY_CHECKS=OFF \
..

ninja

ccache -s
9 changes: 1 addition & 8 deletions .github/workflows/ogc.yml
Expand Up @@ -21,16 +21,9 @@ jobs:
run: |
docker build -t qgis_server_deps -f .ci/ogc/Dockerfile .ci/ogc/
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ogc

- name: Run build
run: |
docker run -v ~/.ccache:/root/ccache -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh
docker run -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh
- name: Install pyogctest
run: |
Expand Down

0 comments on commit 2a3fdf1

Please sign in to comment.