.gitlab-ci.yml 1.26 KB
Newer Older
Bengt Giger's avatar
Bengt Giger committed
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
---
image: quay.io/ansible/toolset:latest
services:
  - docker:19.03.0-dind

variables:
  PY_COLORS: 1
  GIT_STRATEGY: clone
  # DOCKER_HOST: tcp://localhost:2375
  DOCKER_TLS_CERTDIR: ""

stages:
  - tests

before_script:
  - docker -v
  - python -V
  - ansible --version
  - molecule --version

# Test timeservice on dedicated gitlab-runner server
timeservice-chrony-test:
  stage: tests
  tags:
    - docker
  script:
    - cd roles/timeservice;
      molecule test;
      molecule test -s ntp;

# Test private_subnet_client on Kubernetes
private_subnet_client-test:
  stage: tests
  tags:
    - k8s-runner
  variables:
    DOCKER_HOST: tcp://localhost:2375
  script:
    - cd roles/private_subnet_client;
      molecule test;

Bengt Giger's avatar
Bengt Giger committed
42
# Test console_configuration on Kubernetes
Bengt Giger's avatar
Bengt Giger committed
43
44
45
46
47
48
49
50
51
console_configuration-test:
  stage: tests
  tags:
    - k8s-runner
  variables:
    DOCKER_HOST: tcp://localhost:2375
  script:
    - cd roles/console_configuration;
      molecule test;
Bengt Giger's avatar
Bengt Giger committed
52
53
54
55
56
57
58
59
60
61

# Test system_update_manager on Kubernetes
system_update_manager-test:
  stage: tests
  tags:
    - k8s-runner
  variables:
    DOCKER_HOST: tcp://localhost:2375
  script:
    - cd roles/system_update_manager;
Bengt Giger's avatar
Bengt Giger committed
62
      molecule test -s remove;
Bengt Giger's avatar
Bengt Giger committed
63
64
65
      molecule test;
      molecule test -s increase;
      molecule test -s decrease;