This repository was archived by the owner on Mar 6, 2023. It is now read-only.
File tree 4 files changed +21
-20
lines changed
4 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ version: 2.1
4
4
executors :
5
5
python :
6
6
docker :
7
- - image : cimg/python:3.9
7
+ - image : cimg/python:3.10
8
8
publisher :
9
9
docker :
10
10
- image : quay.io/cloudalchemy/publisher:latest
15
15
steps :
16
16
- checkout
17
17
- run : pip install ansible ansible-lint yamllint flake8
18
- - run : mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME}
19
18
- run : ansible-lint
20
19
- run : yamllint .
21
20
- run : flake8
@@ -25,25 +24,21 @@ jobs:
25
24
parameters :
26
25
ansible :
27
26
type : string
27
+ scenario :
28
+ type : string
28
29
steps :
29
30
- checkout
30
31
- setup_remote_docker
31
- - run : mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME}
32
- - run : pip install "ansible~=<<parameters.ansible >>.0"
32
+ - run : pip install "ansible~=<< parameters.ansible >>.0"
33
33
- run : pip install -r test-requirements.txt
34
- - run : molecule test -s default --destroy always
35
- - run : |
36
- if [[ -d 'molecule/alternative' ]]; then
37
- molecule test -s alternative --destroy always
38
- else
39
- echo 'No alternative test'
40
- fi
41
- - run : |
42
- if [[ -z "${CIRCLE_PULL_REQUEST}" ]] && [[ -d 'molecule/latest' ]]; then
43
- molecule test -s latest --destroy always
44
- else
45
- echo 'Not running latest on PR'
46
- fi
34
+ - run :
35
+ no_output_timeout : 60m
36
+ command : |
37
+ if [[ -n "${CIRCLE_PULL_REQUEST}" ]] && [[ '<< parameters.scenario >>' == 'latest' ]]; then
38
+ echo 'Not running latest on PR'
39
+ else
40
+ molecule test -s '<< parameters.scenario >>' --destroy always
41
+ fi
47
42
release :
48
43
executor : publisher
49
44
steps :
@@ -74,6 +69,12 @@ workflows:
74
69
ansible :
75
70
- " 2.9"
76
71
- " 2.10"
72
+ - " 4.10"
73
+ - " 5.1"
74
+ scenario :
75
+ - default
76
+ - alternative
77
+ - latest
77
78
filters :
78
79
tags :
79
80
only : /.*/
Original file line number Diff line number Diff line change 3
3
hosts : all
4
4
any_errors_fatal : true
5
5
roles :
6
- - ansible-node-exporter
6
+ - cloudalchemy.node_exporter
7
7
pre_tasks :
8
8
- name : Create node_exporter cert dir
9
9
file :
Original file line number Diff line number Diff line change 2
2
- hosts : all
3
3
any_errors_fatal : true
4
4
roles :
5
- - ansible-node-exporter
5
+ - cloudalchemy.node_exporter
6
6
vars :
7
7
node_exporter_web_listen_address : " 127.0.0.1:9100"
Original file line number Diff line number Diff line change 3
3
hosts : all
4
4
any_errors_fatal : true
5
5
roles :
6
- - ansible-node-exporter
6
+ - cloudalchemy.node_exporter
7
7
vars :
8
8
node_exporter_version : latest
You can’t perform that action at this time.
0 commit comments