.gitlab-ci.yml 1.61 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1 2 3 4 5 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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
variables:
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_DEPTH: "3"
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"

cache:
  paths:
    - ccache

.robotpkg-dynamic-graph-v3: &robotpkg-dynamic-graph-v3
  except:
    - gh-pages
  script:
    - mkdir -p ccache
    - cd /root/robotpkg/wip/dynamic-graph-v3
    - git pull
    - make checkout MASTER_REPOSITORY="dir ${CI_PROJECT_DIR}"
    - make install
    - cd work.$(hostname)/$(make show-var VARNAME=DISTNAME)
    - make test

robotpkg-dynamic-graph-v3-14.04-release:
  <<: *robotpkg-dynamic-graph-v3
  image: eur0c.laas.fr:5000/stack-of-tasks/dynamic-graph/dynamic-graph-v3:14.04

robotpkg-dynamic-graph-v3-16.04-release:
  <<: *robotpkg-dynamic-graph-v3
  image: eur0c.laas.fr:5000/stack-of-tasks/dynamic-graph/dynamic-graph-v3:16.04

robotpkg-dynamic-graph-v3-18.04-release:
  <<: *robotpkg-dynamic-graph-v3
  image: eur0c.laas.fr:5000/stack-of-tasks/dynamic-graph/dynamic-graph-v3:18.04

doc-coverage:
  <<: *robotpkg-dynamic-graph-v3
  image: eur0c.laas.fr:5000/stack-of-tasks/dynamic-graph/dynamic-graph-v3:16.04
  before_script:
    - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
  after_script:
    - cd /root/robotpkg/wip/dynamic-graph-v3
    - cd work.$(hostname)/$(make show-var VARNAME=DISTNAME)
    - make doc
    - mv doc/doxygen-html ${CI_PROJECT_DIR}
    - mkdir -p ${CI_PROJECT_DIR}/coverage/
    - gcovr -r .
    - gcovr -r . --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
  artifacts:
    expire_in: 1 day
    paths:
      - doxygen-html/
      - coverage/