-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
100 lines (93 loc) · 2.67 KB
/
.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
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
image: docker:27.1.2-dind
before_script:
- docker info
lesson1:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson1_initialized_role/empty_role \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"
lesson2_empty:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson2_geerlingguy.docker/geerlingguy.docker \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"
lesson2_add_tests:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson2_geerlingguy.docker.add_tests/geerlingguy.docker \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"
lesson3:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson3_gererlinguy.docker.add_functionality/geerlingguy.docker \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"
lesson4:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson4_advanced_functionality.dependend_roles/some_role \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"
lesson5:
tags:
- molecule-workshop
stage: test
script:
- pwd
- ls -lha
- |
docker run \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume $(pwd):$(pwd) \
--workdir $(pwd)/lesson5_advanced_functionality.advanced_inventories/some_role \
--user root \
quay.io/ansible/molecule:3.0.2 \
/bin/sh -c "ls -lha && pip3 install testinfra && molecule test --all --parallel"