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
...@@ -52,7 +52,7 @@ debian-testing: ...@@ -52,7 +52,7 @@ debian-testing:
set -e set -e
- /kaniko/executor --context $CI_PROJECT_DIR/.gitlab-ci --destination $IMAGE_LOCAL - /kaniko/executor --context $CI_PROJECT_DIR/.gitlab-ci --destination $IMAGE_LOCAL
build-and-test: .common-build-and-test:
stage: build-and-test stage: build-and-test
image: $IMAGE_LOCAL image: $IMAGE_LOCAL
artifacts: artifacts:
...@@ -70,8 +70,29 @@ build-and-test: ...@@ -70,8 +70,29 @@ build-and-test:
- export CCACHE_BASEDIR="$PWD" - export CCACHE_BASEDIR="$PWD"
- export CCACHE_DIR="$PWD/ccache" - export CCACHE_DIR="$PWD/ccache"
- export CCACHE_COMPILERCHECK=content - export CCACHE_COMPILERCHECK=content
- export PATH="/usr/lib/ccache:$PATH"
- ccache --zero-stats - ccache --zero-stats
- ccache --show-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: script:
- meson -Dprefix=/usr build/ - meson -Dprefix=/usr build/
- | - |
...@@ -83,5 +104,3 @@ build-and-test: ...@@ -83,5 +104,3 @@ build-and-test:
cat build/meson-logs/testlog.txt cat build/meson-logs/testlog.txt
cat build/test/piglit-results/xvfb/long-summary || : cat build/test/piglit-results/xvfb/long-summary || :
exit $status exit $status
after_script:
- CCACHE_DIR="$PWD/ccache" ccache --show-stats
Supports Markdown
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