summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 013e23d47ab94637b88880e8553aad7e31a18dbd (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
image: devcurmudgeon/foo

before_script:
- sh ./install_dependencies.sh

cache:
  paths:
  - "$YBD_base"

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

check_pep8:
  stage: pep8
  script: "pep8"

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

check_build:
  stage: build
  variables:
    YBD_check_definitions: "exit"
  script:
  - git clone git://git.baserock.org/baserock/baserock/definitions
  - ./ybd.py definitions/systems/minimal-system-x86_64-generic.morph x86_64