.gitlab-ci.yml 995 Bytes
Newer Older
1
image: registry.labs.nic.cz/turris/updater/updater
2 3 4

stages:
  - test
Karel Koci's avatar
Karel Koci committed
5
  - pages
6 7

before_script:
8
  - git submodule update --init --recursive
9

Karel Koci's avatar
Karel Koci committed
10 11
# Unit tests #
unit-tests:
12
  stage: test
13
  script:
Karel Koci's avatar
Karel Koci committed
14
    - make test
15

Karel Koci's avatar
Karel Koci committed
16 17 18
unit-valgrind-tests:
  stage: test
  script:
Karel Koci's avatar
Karel Koci committed
19
    - make OPENSSL_PURITY=y valgrind
20

Karel Koci's avatar
Karel Koci committed
21 22
# System integration tests #
system-tests:
23 24
  stage: test
  script:
Karel Koci's avatar
Karel Koci committed
25
    - make test-sys
Karel Koci's avatar
Karel Koci committed
26

Karel Koci's avatar
Karel Koci committed
27 28 29
system-valgrind-tests:
  stage: test
  script:
Karel Koci's avatar
Karel Koci committed
30 31 32 33 34 35 36 37 38 39 40 41
    - make OPENSSL_PURITY=y valgrind-sys

# Static checkers #
cppcheck:
  stage: test
  script:
    - make cppcheck

luacheck:
  stage: test
  script:
    - make luacheck
42

Karel Koci's avatar
Karel Koci committed
43
# Gitlab pages #
Karel Koci's avatar
Karel Koci committed
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
pages:
  stage: pages
  script:
  - rm -rf public
  - mkdir public
  - make COV=y
  - make COV=y test test-sys
  - make COV=y coverage
  - markdown .doc_index.md > public/index.html
  - utils/gendocindex.sh | markdown > public/docindex.html
  - cp -r docs public/docs
  - cp -r coverage public/coverage
  artifacts:
    when: on_success
    paths:
    - public
  only:
  - master