Commit 2f12c801 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

gitlab-ci: Add autotools build & test job

parent b577df77
Pipeline #20293 passed with stages
in 10 minutes and 32 seconds
......@@ -52,7 +52,7 @@ debian-testing:
set -e
- /kaniko/executor --context $CI_PROJECT_DIR/.gitlab-ci --destination $IMAGE_LOCAL
build-and-test:
.common-build-and-test:
stage: build-and-test
image: $IMAGE_LOCAL
artifacts:
......@@ -70,8 +70,29 @@ build-and-test:
- export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content
- export PATH="/usr/lib/ccache:$PATH"
- ccache --zero-stats
- ccache --show-stats
after_script:
- CCACHE_DIR="$PWD/ccache" ccache --show-stats
autotools-build-and-test:
extends: .common-build-and-test
script:
- mkdir build/
- cd build/
- |
../autogen.sh --prefix=/usr
make -j$(nproc) install
set +e
set -x
make -j$(nproc) check
status=$?
cat test/piglit-results/xvfb/long-summary || :
exit $status
meson-build-and-test:
extends: .common-build-and-test
script:
- meson -Dprefix=/usr build/
- |
......@@ -83,5 +104,3 @@ build-and-test:
cat build/meson-logs/testlog.txt
cat build/test/piglit-results/xvfb/long-summary || :
exit $status
after_script:
- CCACHE_DIR="$PWD/ccache" ccache --show-stats
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment