variables:
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_DEPTH: "3"
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"

cache:
  paths:
    - ccache

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

robotpkg-py-eigenpy-16.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:16.04

robotpkg-py-eigenpy-18.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:18.04

robotpkg-py-eigenpy-py3-16.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:16.04

robotpkg-py-eigenpy-py3-18.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:18.04

robotpkg-py-eigenpy-14.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:14.04

robotpkg-py-eigenpy-14.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:14.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-eigenpy-py3-14.04-release:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:14.04

robotpkg-py-eigenpy-py3-14.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:14.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-eigenpy-16.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:16.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-eigenpy-py3-16.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:16.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-eigenpy-18.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy:18.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-eigenpy-py3-18.04-debug:
  <<: *robotpkg-py-eigenpy
  image: memmos.laas.fr:5000/stack-of-tasks/eigenpy/py-eigenpy-py3:18.04
  before_script:
    - echo PKG_OPTIONS.py-eigenpy=debug >> /opt/openrobots/etc/robotpkg.conf

