.gitlab-ci.yml 1.98 KB
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
1
variables:
2 3 4 5
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_DEPTH: "3"
  NAMESPACE: pyrene-dev
  PROJECT: talos_metapkg_ros_control_sot
6 7 8 9
  REGISTRY: gepgitlab.laas.fr:4567
  IMAGE: "${REGISTRY}/${NAMESPACE}/${PROJECT}"
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
Guilhem Saurel's avatar
Guilhem Saurel committed
10

11 12
cache:
  paths:
13
    - ccache
14 15 16 17 18 19


.robotpkg-talos-metapkg-ros-control-sot: &robotpkg-talos-metapkg-ros-control-sot
  variables:
    ROBOTPKG: talos-metapkg-ros-control-sot
    CATEGORY: wip
Guilhem Saurel's avatar
Guilhem Saurel committed
20
  before_script:
Olivier Stasse's avatar
Olivier Stasse committed
21 22 23 24
    - mkdir -p build/ccache
    - cd build
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
Guilhem Saurel's avatar
Guilhem Saurel committed
25
  script:
26
    - cd /root/robotpkg/${CATEGORY}/${ROBOTPKG}
Guilhem Saurel's avatar
Guilhem Saurel committed
27
    - git pull
Olivier Stasse's avatar
Olivier Stasse committed
28 29
    - echo "MASTER_REPOSITORY = git ${CI_PROJECT_DIR}" >> Makefile
    - echo "REPOSITORY.talos-metapkg-ros-control-sot = git ${CI_PROJECT_DIR}" >> /opt/openrobots/etc/robotpkg.conf
30
    - echo "ACCEPTABLE_LICENSES+=pal-license" >> /opt/openrobots/etc/robotpkg.conf
Olivier Stasse's avatar
Olivier Stasse committed
31
    - make checkout
32
    - make install
Olivier Stasse's avatar
Olivier Stasse committed
33
    - cd work.*/${PROJECT}*/
34 35 36
  except:
    - gh-pages

Guilhem Saurel's avatar
Guilhem Saurel committed
37

38 39
robotpkg-talos-metapkg-ros-control-sot-14.04:
  <<: *robotpkg-talos-metapkg-ros-control-sot
Olivier Stasse's avatar
Olivier Stasse committed
40 41 42 43 44
  before_script:
    - mkdir -p build/ccache
    - cd build
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
Olivier Stasse's avatar
Olivier Stasse committed
45
    - apt-get update    
Olivier Stasse's avatar
Olivier Stasse committed
46
    - apt-get install ros-indigo-four-wheels-steering-msgs
47
  image: ${IMAGE}:14.04
Guilhem Saurel's avatar
Guilhem Saurel committed
48

49

50 51
robotpkg-talos-metapkg-ros-control-sot-16.04:
  <<: *robotpkg-talos-metapkg-ros-control-sot
Olivier Stasse's avatar
Olivier Stasse committed
52 53 54 55 56 57
  before_script:
    - mkdir -p build/ccache
    - cd build
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
    - apt-get install ros-kinetic-four-wheels-steering-msgs  
58
  image: ${IMAGE}:16.04
Olivier Stasse's avatar
Olivier Stasse committed
59
  
Olivier Stasse's avatar
Olivier Stasse committed
60 61
robotpkg-talos-metapkg-ros-control-sot-dubnium:
  <<: *robotpkg-talos-metapkg-ros-control-sot
Olivier Stasse's avatar
Olivier Stasse committed
62 63 64 65 66
  before_script:
    - mkdir -p build/ccache
    - cd build
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
Olivier Stasse's avatar
Olivier Stasse committed
67
    - apt-get update
Olivier Stasse's avatar
Olivier Stasse committed
68
    - apt-get install ros-indigo-four-wheels-steering-msgs
Olivier Stasse's avatar
Olivier Stasse committed
69
  image: ${IMAGE}:dubnium