summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 6a7ae4760aa61ff898ddccb9838e7d1f44ac47be (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
stages:
  - docker
  - checkout
  - test

variables:
  BITBAKE_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-bitbake
  BITBAKE_CHECKOUT_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-checkout

include:
  - project: 'olp/edge/ota/connect/client/meta-updater'
    ref: 'master'
    file: 'scripts/ci/gitlab/docker.yml'
  - project: 'olp/edge/ota/connect/client/meta-updater'
    ref: 'master'
    file: 'scripts/ci/gitlab/checkout.yml'
  - project: 'olp/edge/ota/connect/client/meta-updater'
    ref: 'master'
    file: 'scripts/ci/gitlab/tests.yml'

Docker setup:
  extends: .bb_docker_remote

  stage: docker
  except:
    - pushes

Checkout:
  extends: .bb_checkout

  stage: checkout
  variables:
    MANIFEST: thud
    CURRENT_PROJECT: meta-updater
  except:
    - pushes

Build core-image-minimal:
  extends: .bitbake

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-core-image-minimal'
    BITBAKE_TARGETS: 'core-image-minimal'
  except:
    - pushes

Build core-image-minimal (rpi):
  extends: .bitbake

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-core-image-minimal-rpi'
    BITBAKE_TARGETS: 'core-image-minimal'
    TEST_MACHINE: 'raspberrypi3'
  except:
    - pushes

Oe-selftest qemux86_64:
  extends: .oe-selftest

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-oe-qemux86_64'
    OE_SELFTESTS: 'updater_native updater_qemux86_64'
  except:
    - pushes

Oe-selftest minnowboard:
  extends: .oe-selftest

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-oe-minnowboard'
    OE_SELFTESTS: 'updater_minnowboard'
  except:
    - pushes

Oe-selftest rpi:
  extends: .oe-selftest

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-oe-rpi'
    OE_SELFTESTS: 'updater_raspberrypi'
  except:
    - pushes

# Not run by default

Ptest qemux86_64:
  extends: .oe-selftest

  stage: test
  variables:
    TEST_BUILD_DIR: 'build-oe-qemux86_64-ptest'
    OE_SELFTESTS: 'updater_qemux86_64_ptest'
  except:
    - pushes
  only:
    variables:
      - $OE_PTEST