-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
45 lines (39 loc) · 836 Bytes
/
.gitlab-ci.yml
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
---
image: registry.xait.no/templates/ansible-role:2.9
variables:
NO_SUDO: 1
ANSIBLE_FORCE_COLOR: 'true'
PY_COLORS: '1'
stages:
- lint
- test
before_script:
- docker info
- python3 --version
- ansible --version
- molecule --version
# Required to pull other private repositories
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.xait.no/".insteadOf "[email protected]:"
molecule:lint:
allow_failure: true
stage: lint
script:
- molecule lint
- molecule syntax
molecule:test-ol8:
tags:
- docker
stage: test
variables:
MOLECULE_OL_VERSION: "8"
script:
- molecule test
molecule:test-ol8-2.12:
image: registry.xait.no/templates/ansible-role:2.12.5
tags:
- docker
stage: test
variables:
MOLECULE_OL_VERSION: "8"
script:
- molecule test