Lines Matching +full:common +full:- +full:build +full:- +full:and +full:- +full:test

1 # IMAGE_TAG is the tag of the docker image used for the build jobs. If the
2 # image doesn't exist yet, the docker-image stage generates it.
8 # gcc/clang or other packages, which might break the build with older commits
16 IMAGE_TAG: "debian-testing-20190219"
21 - docker-image
22 - build-and-test
24 debian-testing:
25 stage: docker-image
27 name: gcr.io/kaniko-project/executor:debug
30- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGIST…
31 - mkdir kaniko-context
32 - |
33 echo "FROM $IMAGE_LOCAL" > kaniko-context/Dockerfile
34 # If the image exists in the local registry, skip to the build-and-test job
36 set -x
37 /kaniko/executor --context kaniko-context --no-push && exit 0
39 set -e
40 - |
41 echo "FROM $IMAGE_MAIN" > kaniko-context/Dockerfile
42 # Try to re-use the image from the main repository's registry, and if
45 set -x
46 /kaniko/executor --context kaniko-context --destination $IMAGE_LOCAL && exit 0
48 set -e
49 - /kaniko/executor --context $CI_PROJECT_DIR/.gitlab-ci --destination $IMAGE_LOCAL
51 .common-build-and-test:
52 stage: build-and-test
57 - build/test/piglit-results/
60 - ccache/
62 LC_ALL: C.UTF-8
64 - export CCACHE_BASEDIR="$PWD"
65 - export CCACHE_DIR="$PWD/ccache"
66 - export CCACHE_COMPILERCHECK=content
67 - export PATH="/usr/lib/ccache:$PATH"
68 - ccache --zero-stats
69 - ccache --show-stats
71 - CCACHE_DIR="$PWD/ccache" ccache --show-stats
73 autotools-build-and-test:
74 extends: .common-build-and-test
76 - mkdir build/
77 - cd build/
78 - ../autogen.sh --prefix=/usr
79 - make -j$(nproc) distcheck
80 - |
83 set -x
84 make -j$(nproc) check
86 cat test/piglit-results/xvfb/long-summary || :
89 meson-build-and-test:
90 extends: .common-build-and-test
95 - meson -Dprefix=/usr build/
96 - |
97 ninja -C build/ install
99 set -x
100 ninja -C build/ test
102 cat build/meson-logs/testlog.txt
103 cat build/test/piglit-results/xvfb/long-summary || :