.gitlab-ci.yml 1.04 KB
Newer Older
1 2 3
image: berenger/spetabaruci

spetabaru:
4
  tags:
5
    - medium
6 7 8 9 10
  script:
    - mkdir build
    - cd build
    - VERBOSE=1 CXX=g++-7 cmake ..
    - make
11
    - CTEST_OUTPUT_ON_FAILURE=TRUE make test
12 13 14
    
    
spetabaru-debug:
15
  tags:
16
    - medium
17 18 19 20 21
  script:
    - mkdir build
    - cd build
    - VERBOSE=1 CXX=g++-7 cmake -DCMAKE_BUILD_TYPE=DEBUG ..
    - make
22 23 24 25
    - CTEST_OUTPUT_ON_FAILURE=TRUE make test


spetabaru-debug-coverage:
26
  tags:
27
    - medium
28 29 30 31 32 33 34
  script:
    - mkdir build
    - cd build
    - VERBOSE=1 CXX=g++-7 cmake -DCMAKE_BUILD_TYPE=DEBUG -DSPETABARU_USE_COVERAGE=ON ..
    - make
    - CTEST_OUTPUT_ON_FAILURE=TRUE make test
    - lcov --directory ./ -c -o coverage-rapport.info
35
    - lcov --list coverage-rapport.info
36
    - genhtml -o ../coverage -t "Coverage example" coverage-rapport.info
37 38 39 40 41
  artifacts:
    paths:
      - coverage/

pages:
42
  tags:
43
    - medium
44 45 46 47 48 49 50 51 52
  stage: deploy
  dependencies:
    - spetabaru-debug-coverage
  script:
    - mv coverage/ public/
  artifacts:
    paths:
      - public
    expire_in: 30 days
53 54
  only:
    - master
55