gitlab-ci: Add autotools build & test job
(Cherry picked from commit 2f12c80175
)
This commit is contained in:
parent
de6d87b619
commit
e5984241ab
|
@ -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:
|
||||||
- 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:
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in New Issue