.gitlab-ci.yml 944 Bytes
Newer Older
1 2 3 4
image: fedora:latest

before_script:
  - dnf update -y
5
  - dnf install -y gcc automake libtool make pkgconfig autoconf-archive nss-devel glib2-devel opensc gnutls-utils nss-tools openssl softhsm lcov valgrind libasan
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

Build:
  stage: build
  script:
    - ./autogen.sh
    - make

Check:
  stage: test
  script:
    - ./autogen.sh --enable-code-coverage
    - make check
    - make code-coverage-capture
    - lcov --summary libcacard-*-coverage.info
  artifacts:
    expire_in: '1 week'
    paths:
      - test-suite.log
      - libcacard-*-coverage

Memcheck:
  stage: test
  script:
    - ./autogen.sh
    - make memcheck-local
  allow_failure: true

33 34 35 36 37 38 39
asan:
  stage: test
  script:
    - ./autogen.sh
    - make CFLAGS="-fsanitize=address" check
  allow_failure: true

40 41 42 43 44 45 46 47 48 49 50 51
pages:
  stage: deploy
  dependencies:
    - Check
  script:
    - mv *-coverage/ public/
  artifacts:
    paths:
      - public
    expire_in: 30 days
  only:
    - master