.gitlab-ci.yml 1.14 KB
Newer Older
louiz’'s avatar
louiz’ committed
1 2 3
stages:
- build

louiz’'s avatar
louiz’ committed
4
before_script:
louiz’'s avatar
louiz’ committed
5 6 7
  - uname -a
  - whoami
  - echo $LANG
louiz’'s avatar
louiz’ committed
8 9
  - g++ --version
  - clang++ --version
10 11
  - mkdir build
  - cd build
louiz’'s avatar
louiz’ committed
12

13
build:fedora:
louiz’'s avatar
louiz’ committed
14
  stage: build
15
  image: biboumi-test-fedora:latest
louiz’'s avatar
louiz’ committed
16
  script:
louiz’'s avatar
louiz’ committed
17 18
    - cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug -DWITH_BOTAN=1 -DWITH_CARES=1 -DWITH_SYSTEMD=1 -DWITH_LIBIDN=1 -DWITH_LITESQL=1
    - make biboumi -j$(nproc)
louiz’'s avatar
louiz’ committed
19
    - make coverage -j$(nproc)
louiz’'s avatar
louiz’ committed
20
    - make check -j$(nproc)
21
    - mkdir tests_outputs && pushd tests_outputs && make e2e -j$(nproc) -C .. && popd
louiz’'s avatar
louiz’ committed
22
    - make rpm -j$(nproc)
louiz’'s avatar
louiz’ committed
23 24
  artifacts:
    paths:
25
      - build/coverage/
26 27
      - build/rpmbuild/RPMS
      - build/rpmbuild/SRPMS
28
      - build/tests_outputs/
29 30 31 32 33 34 35 36 37 38 39 40 41 42

build:debian:
  stage: build
  image: biboumi-test-debian:latest
  script:
    - cmake .. -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Debug -DWITH_BOTAN=1 -DWITH_CARES=1 -DWITH_SYSTEMD=1 -DWITH_LIBIDN=1 -DWITH_LITESQL=1
    - make biboumi -j$(nproc)
    - make coverage -j$(nproc)
    - make check -j$(nproc)
    - mkdir tests_outputs && pushd tests_outputs && make e2e -j$(nproc) -C .. && popd
  artifacts:
    paths:
      - build/coverage/
      - build/tests_outputs/