gitlab-ci.yml 771 Bytes
Newer Older
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
variables:
  GIT_SSL_NO_VERIFY: "true"
  GIT_SUBMODULE_STRATEGY: "recursive"
  GIT_DEPTH: "3"
  NAMESPACE: {{ robotpkg.project.main_namespace.slug }}
  PROJECT: {{ robotpkg.project }}
  ROBOTPKG: {{ robotpkg }}
  CATEGORY: {{ robotpkg.category }}
  IMAGE: "${CI_REGISTRY}/${NAMESPACE}/${PROJECT}"

cache:
  paths:
    - build/ccache

.build: &build
  before_script:
    - mkdir -p build/ccache
    - cd build
    - export CCACHE_BASEDIR=${PWD}
    - export CCACHE_DIR=${PWD}/ccache
  script:
    - cd /root/robotpkg/${CATEGORY}/${ROBOTPKG}
    - make install
    - cd work.*/${ROBOTPKG}*/
    - make test
  retry: 2
  except:
    - gh-pages

{% for image in robotpkg.valid_images %}
{{ image }}:
  <<: *build
  image: ${IMAGE}:{{ image.get_target_display }}
{% endfor %}