summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 0aec49e772754a32d54c04d50bc1ea2ffbba066d (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
image: debian:jessie

before_script:
- sh ./install_dependencies.sh
- git clone git://git.baserock.org/baserock/baserock/definitions ../definitions

cache:
  paths:
  - "$YBD_base"

stages:
- pep8
- cache_keys
- build
- test
- deploy

check_pep8:
  stage: pep8
  script: "pycodestyle --show-source --show-pep8"

cache_keys_v1:
  stage: cache_keys
  variables:
    YBD_artifact_version: "1"
    YBD_mode: "keys-only"
  script:
  - cd ../definitions
  - git checkout baserock-14.40
  - ../ybd/ybd.py ci x86_64
  - echo ci.b9de86669ce182e60e3f9445e6394b478b67a2c73b4c0764491c158c5f2569e9 > expected.result
  - diff expected.result ybd.result

cache_keys_v6:
  stage: cache_keys
  variables:
    YBD_artifact_version: "6"
    YBD_mode: "keys-only"
  script:
  - cd ../definitions
  - git checkout GENIVI-M1.0
  - ../ybd/ybd.py ci x86_64
  - echo ci.d9dec300a7cb2bc273dc6846e69a11b7f3ad304462f3a4c6ce8c5ab6ead11647 > expected.result
  - diff expected.result ybd.result

check_build_debian_jessie:
  image: debian:jessie
  stage: build
  variables:
    YBD_kbas_url: "false-url"
    YBD_check_definitions: "exit"
  script:
  - ./ybd.py definitions/systems/minimal-system-x86_64-generic.morph x86_64

check_build_ubuntu_16.04:
  image: ubuntu:16.04
  stage: build
  variables:
    YBD_kbas_url: "false-url"
    YBD_check_definitions: "exit"
  script:
  - ./ybd.py definitions/systems/minimal-system-x86_64-generic.morph x86_64

check_build_kbas:
  stage: build
  variables:
    YBD_check_definitions: "exit"
  script:
  - ./ybd.py definitions/systems/minimal-system-x86_64-chroot.morph x86_64

check_deploy:
  stage: deploy
  script:
  - ./ybd.py definitions/clusters/minimal-system-x86_64-chroot-deploy.morph x86_64