Skip to content

Commit c507e6c

Browse files
authored
Merge pull request #57 from cloudalchemy/superq/fixup_build
2 parents dbd87f6 + 135a737 commit c507e6c

File tree

6 files changed

+51
-29
lines changed

6 files changed

+51
-29
lines changed

.circleci/config.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.1
44
executors:
55
python:
66
docker:
7-
- image: cimg/python:3.9
7+
- image: cimg/python:3.10
88
publisher:
99
docker:
1010
- image: quay.io/cloudalchemy/publisher:latest
@@ -15,7 +15,6 @@ jobs:
1515
steps:
1616
- checkout
1717
- run: pip install ansible ansible-lint yamllint flake8
18-
- run: mkdir -p .cache/roles && ln -s ../.. .cache/roles/${CIRCLE_PROJECT_REPONAME}
1918
- run: ansible-lint
2019
- run: yamllint .
2120
- run: flake8
@@ -25,25 +24,21 @@ jobs:
2524
parameters:
2625
ansible:
2726
type: string
27+
scenario:
28+
type: string
2829
steps:
2930
- checkout
3031
- 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"
3333
- 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
4742
release:
4843
executor: publisher
4944
steps:
@@ -74,6 +69,12 @@ workflows:
7469
ansible:
7570
- "2.9"
7671
- "2.10"
72+
- "4.10"
73+
- "5.1"
74+
scenario:
75+
- default
76+
- alternative
77+
- latest
7778
filters:
7879
tags:
7980
only: /.*/

.mergify.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
11
---
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+
216
pull_request_rules:
317
- name: automatic merge and new release from cloudalchemybot
418
conditions:
5-
- "status-success=Travis CI - Pull Request"
619
- status-success=WIP
720
- head~=autoupdate|skeleton
821
- 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"
932
actions:
10-
merge:
33+
queue:
1134
method: squash
12-
strict: true
13-
- name: delete head branch after merge
14-
conditions: []
15-
actions:
16-
delete_head_branch: {}
35+
name: default

meta/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
galaxy_info:
3-
author: Pawel Krupa, Ben Kochie
4-
description: CoreDNS installation
3+
author: cloudalchemy
54
role_name: coredns
5+
description: CoreDNS installation
66
license: MIT
77
company: none
88
min_ansible_version: 2.7

molecule/alternative/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
hosts: all
44
any_errors_fatal: true
55
roles:
6-
- ansible-coredns
6+
- cloudalchemy.coredns
77
vars:
88
coredns_binary_local_dir: "/tmp"
99
coredns_config_file: "Corefile.example.j2"

molecule/default/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
- hosts: all
33
any_errors_fatal: true
44
roles:
5-
- ansible-coredns
5+
- cloudalchemy.coredns
66
vars:
77
coredns_config_file: "Corefile.example.j2"

test-requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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
24
molecule-docker
35
docker
46
ansible-lint>=3.4.0

0 commit comments

Comments
 (0)