Skip to content
Snippets Groups Projects
Commit 663b830f authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

CI: Weekly test for base distributions

parent e373c705
No related branches found
No related tags found
No related merge requests found
Pipeline #23792 failed
...@@ -14,32 +14,62 @@ stages: ...@@ -14,32 +14,62 @@ stages:
   
#========== Stage build ========== #========== Stage build ==========
   
.build: &build_template .build: &build
stage: build stage: build
before_script:
- apk add --no-cache bash build-base cmake python3 libexecinfo-dev cppunit-dev libxml2-dev tclap-dev readline-dev qt5-qtbase-dev graphviz-dev jsoncpp-dev ${EXTRA_PKGS}
script: script:
- export CXX=${CXX}
- CMake/generate.py -wm - CMake/generate.py -wm
- mkdir release - mkdir release
- cd release - cd release
- cmake -DCMAKE_BUILD_TYPE=Release .. - cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j $(grep -c processor /proc/cpuinfo) - make -j $(grep -c processor /proc/cpuinfo)
.build:push: &build-push
<<: *build
image: alpine:3.8
before_script:
- apk add --no-cache bash build-base cmake python3 libexecinfo-dev cppunit-dev libxml2-dev tclap-dev readline-dev qt5-qtbase-dev graphviz-dev jsoncpp-dev ${EXTRA_PKGS}
- export CXX=${CXX}
artifacts: artifacts:
paths: paths:
- release/ - release/
expire_in: 1 day expire_in: 1 hour
.build:compatibility: &build-compatibility
<<: *build
only:
variables:
- $SCHEDULED_COMPATIBILITY
   
build:gcc: build:alpine:gcc:
<<: *build_template <<: *build-push
variables: variables:
CXX: g++ CXX: g++
   
build:clang: build:alpine:clang:
<<: *build_template <<: *build-push
variables: variables:
CXX: clang++
EXTRA_PKGS: clang EXTRA_PKGS: clang
CXX: clang++
build:debian:stable:
<<: *build-compatibility
before_script:
- apt-get update
- apt-get install -y build-essential cmake make python3 libcppunit-dev libxml2-dev libtclap-dev libreadline-dev qtbase5-dev graphviz-dev libjsoncpp-dev
image: amd64/debian:testing-slim
build:debian:testing:
<<: *build-compatibility
before_script:
- apt-get update
- apt-get install -y build-essential cmake make python3 libcppunit-dev libxml2-dev libtclap-dev libreadline-dev qtbase5-dev graphviz-dev libjsoncpp-dev
image: amd64/debian:testing-slim
build:arch:
<<: *build-compatibility
before_script:
- pacman -Syu --noconfirm base-devel cmake make python cppunit libxml2 tclap readline qt5-base graphviz jsoncpp
image: archlinux/base:latest
   
build:doc: build:doc:
stage: build stage: build
...@@ -57,7 +87,7 @@ build:doc: ...@@ -57,7 +87,7 @@ build:doc:
   
#========== Stage test ========== #========== Stage test ==========
   
.test: &test_template .test: &test
stage: test stage: test
before_script: before_script:
- apk add --no-cache bash bc coreutils python3 cmake make libexecinfo cppunit libxml2 tclap readline qt5-qtbase qt5-qtbase-x11 graphviz jsoncpp - apk add --no-cache bash bc coreutils python3 cmake make libexecinfo cppunit libxml2 tclap readline qt5-qtbase qt5-qtbase-x11 graphviz jsoncpp
...@@ -72,14 +102,14 @@ build:doc: ...@@ -72,14 +102,14 @@ build:doc:
- for test in $(ls tests.*.sh); do ./${test} release/bin $(grep -c processor /proc/cpuinfo) || exit 1; touch release/bin/log_tests.txt; cat release/bin/log_tests.txt; done - for test in $(ls tests.*.sh); do ./${test} release/bin $(grep -c processor /proc/cpuinfo) || exit 1; touch release/bin/log_tests.txt; cat release/bin/log_tests.txt; done
   
test:gcc: test:gcc:
<<: *test_template <<: *test
dependencies: dependencies:
- build:gcc - build:alpine:gcc
   
test:clang: test:clang:
<<: *test_template <<: *test
dependencies: dependencies:
- build:clang - build:alpine:clang
   
#========== Stage release ========= #========== Stage release =========
   
...@@ -106,7 +136,10 @@ test:clang: ...@@ -106,7 +136,10 @@ test:clang:
docker:build-nightly: docker:build-nightly:
<<: *docker_template <<: *docker_template
only: only:
- schedules refs:
- schedules
variables:
- $NIGHTLY
script: script:
- docker build -t "$IMAGE_TAG_NIGHTLY" . - docker build -t "$IMAGE_TAG_NIGHTLY" .
- docker run "$IMAGE_TAG_NIGHTLY" /usr/bin/aql2 --help - docker run "$IMAGE_TAG_NIGHTLY" /usr/bin/aql2 --help
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment