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

stages:
  - test
Karel Koci's avatar
Karel Koci committed
5
  - pages
6 7 8 9 10 11 12 13

before_script:
  - git submodule init
  - git submodule update

# Test stage - run application tests
test:
  stage: test
14 15
  script:
    - make test test-sys
16

17 18 19 20
#test_valgrind:
#  stage: test
#  script:
#    - make valgrind valgrind-sys
21 22 23 24 25 26

# Test stage with busybox embedded
test_busybox:
  stage: test
  script:
    - BUSYBOX_EXEC=/bin/busybox make check
Karel Koci's avatar
Karel Koci committed
27

28 29 30 31
#test_valgrind_busybox:
#  stage: test
#  script:
#    - BUSYBOX_EXEC=/bin/busybox make valgrind valgrind-sys
32

Karel Koci's avatar
Karel Koci committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
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