.gitlab-ci.yml 1.75 KB
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1
image: gitlab-registry.in2p3.fr/cta-lapp/phoenix_libs/phoenixzmq/phoenix_zmq:0.1
Pierre Aubert's avatar
Pierre Aubert committed
2 3 4

stages:
- BuildTestinstall
Pierre Aubert's avatar
Pierre Aubert committed
5
- DocCoverage
Pierre Aubert's avatar
Pierre Aubert committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
- deploy

#- build
#- test
#- deploy

dailyBuildMasterAll:
    #cache:
        #untracked: true
        #paths:
        #- build/

    stage: BuildTestinstall
    script:
    - export LD_LIBRARY_PATH=/usr/lib
    - env
    - mkdir -p build
    - cd build
    - >
        cmake ..
        -DCMAKE_INSTALL_PREFIX=/usr
        -DSELF_TESTS_MODE=yes
    - make all
    - make install
Pierre Aubert's avatar
Pierre Aubert committed
30
    - make test
Pierre Aubert's avatar
Pierre Aubert committed
31 32 33 34 35
    only:
    - branches
    - tags
    tags:

Pierre Aubert's avatar
Pierre Aubert committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
TestCoverage:
    stage: DocCoverage
    script:
    - export LD_LIBRARY_PATH=/usr/lib
    - env
    - mkdir -p build coverage
    - cd build
    - >
        cmake ..
        -DCMAKE_INSTALL_PREFIX=/usr
        -DSELF_TESTS_MODE=yes
        -DCMAKE_BUILD_TYPE=Coverage
    - make all
    - make install
    - make test
    - make ExperimentalCoverage
    - cd ../coverage
53 54 55
    - gcovr -r ../ --exclude-throw-branches --html cov_report.html --html-details
    - gcovr -r ../ --exclude-throw-branches --xml Coverage.xml
    - gcovr -r ../ --exclude-throw-branches
Pierre Aubert's avatar
Pierre Aubert committed
56 57 58 59 60 61 62 63 64 65 66
    artifacts:
        paths:
        - coverage
        expire_in: 1d
    only:
    - branches
    - tags
    tags:

Doc:
    stage: DocCoverage
Pierre Aubert's avatar
Pierre Aubert committed
67 68 69 70 71
    script:
    - export LD_LIBRARY_PATH=/usr/lib
    - env
    - rm -fr build public
    - mkdir -p build
Pierre Aubert's avatar
Pierre Aubert committed
72
    - mkdir -p public
Pierre Aubert's avatar
Pierre Aubert committed
73 74 75 76 77 78 79
    - cd build
    - >
        cmake ..
        -DCMAKE_INSTALL_PREFIX=/usr
        -DDOC_MODE=yes
    - make all
    - make doc
Pierre Aubert's avatar
Pierre Aubert committed
80
    - scp -r doc/html/* ../public
Pierre Aubert's avatar
Pierre Aubert committed
81 82 83 84 85 86 87 88 89 90
    artifacts:
      paths:
      - public
      expire_in: 1d
    only:
    - branches
    - tags
    tags:


Pierre Aubert's avatar
Pierre Aubert committed
91 92 93 94 95 96 97 98 99
pages:
  stage: deploy
  script:
    - mv coverage public/
  artifacts:
    paths:
      - public
    expire_in: 1d