summaryrefslogtreecommitdiffstats
path: root/scripts/ci/gitlab/tests.yml
blob: 4175412eaae3454133ea81bbc026ba0f5a51ada2 (plain)
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
.bitbake:
  # parameters:
  #   - TEST_BUILD_DIR
  #   - TEST_MACHINE (defaults to qemux86-64)
  #   - BITBAKE_TARGETS
  image: $BITBAKE_IMAGE
  dependencies:
    - Checkout
  tags:
    - bitbake
  script:
    - /scripts/configure.sh
    - /scripts/build.sh $BITBAKE_TARGETS

.oe-selftest:
  # parameters:
  #   - TEST_BUILD_DIR
  #   - TEST_MACHINE (defaults to qemux86-64)
  #   - OE_SELFTESTS
  image: $BITBAKE_IMAGE
  dependencies:
    - Checkout
  tags:
    - bitbake
  variables:
    TEST_AKTUALIZR_CREDENTIALS: $CI_PROJECT_DIR/credentials.zip
  script:
    - aws s3 cp s3://ota-gitlab-ci/hereotaconnect_prod.zip credentials.zip
    - sudo /usr/local/bin/setup_kvm.sh
    - |
      # sg is needed after adding bitbake to the kvm group (see setup_kvm.sh)
      sg kvm << EOS
      /scripts/configure.sh
      /scripts/oe-selftest.sh $OE_SELFTESTS
      EOS