File tree Expand file tree Collapse file tree 6 files changed +51
-29
lines changed Expand file tree Collapse file tree 6 files changed +51
-29
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 .cache/roles && ln -s ../.. .cache/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 : ln -s ~/project ~/${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 1
1
---
2
+ queue_rules :
3
+ - name : default
4
+ conditions :
5
+ # These need to stay in sync with auto-maintenance/.github/settings.yml.
6
+ - " check-success=/circleci: lint"
7
+ - " check-success=/circleci: test-2.9-default"
8
+ - " check-success=/circleci: test-2.9-alternative"
9
+ - " check-success=/circleci: test-2.10-default"
10
+ - " check-success=/circleci: test-2.10-alternative"
11
+ - " check-success=/circleci: test-4.10-default"
12
+ - " check-success=/circleci: test-4.10-alternative"
13
+ - " check-success=/circleci: test-5.1-default"
14
+ - " check-success=/circleci: test-5.1-alternative"
15
+
2
16
pull_request_rules :
3
17
- name : automatic merge and new release from cloudalchemybot
4
18
conditions :
5
- - " status-success=Travis CI - Pull Request"
6
19
- status-success=WIP
7
20
- head~=autoupdate|skeleton
8
21
- author=cloudalchemybot
22
+ # These need to stay in sync with auto-maintenance/.github/settings.yml.
23
+ - " check-success=/circleci: lint"
24
+ - " check-success=/circleci: test-2.9-default"
25
+ - " check-success=/circleci: test-2.9-alternative"
26
+ - " check-success=/circleci: test-2.10-default"
27
+ - " check-success=/circleci: test-2.10-alternative"
28
+ - " check-success=/circleci: test-4.10-default"
29
+ - " check-success=/circleci: test-4.10-alternative"
30
+ - " check-success=/circleci: test-5.1-default"
31
+ - " check-success=/circleci: test-5.1-alternative"
9
32
actions :
10
- merge :
33
+ queue :
11
34
method : squash
12
- strict : true
13
- - name : delete head branch after merge
14
- conditions : []
15
- actions :
16
- delete_head_branch : {}
35
+ name : default
Original file line number Diff line number Diff line change 1
1
---
2
2
galaxy_info :
3
- author : Pawel Krupa, Ben Kochie
4
- description : CoreDNS installation
3
+ author : cloudalchemy
5
4
role_name : coredns
5
+ description : CoreDNS installation
6
6
license : MIT
7
7
company : none
8
8
min_ansible_version : 2.7
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- coredns
6
+ - cloudalchemy. coredns
7
7
vars :
8
8
coredns_binary_local_dir : " /tmp"
9
9
coredns_config_file : " Corefile.example.j2"
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- coredns
5
+ - cloudalchemy. coredns
6
6
vars :
7
7
coredns_config_file : " Corefile.example.j2"
Original file line number Diff line number Diff line change 1
- molecule>=3.0.0
1
+ # temporarily lock versions of molecule and ansible-compat to avoid a bug:
2
+ ansible-compat==0.5.0
3
+ molecule==3.5.2
2
4
molecule-docker
3
5
docker
4
6
ansible-lint>=3.4.0
You can’t perform that action at this time.
0 commit comments