Skip to content
Snippets Groups Projects
Unverified Commit c2401cfe authored by Ben Kochie's avatar Ben Kochie Committed by GitHub
Browse files

Merge pull request #255 from cloudalchemy/superq/fixup_ci

Update CI
parents 908dfe0a 6063e98e
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ version: 2.1 ...@@ -4,7 +4,7 @@ version: 2.1
executors: executors:
python: python:
docker: docker:
- image: cimg/python:3.9 - image: cimg/python:3.10
publisher: publisher:
docker: docker:
- image: quay.io/cloudalchemy/publisher:latest - image: quay.io/cloudalchemy/publisher:latest
...@@ -15,7 +15,6 @@ jobs: ...@@ -15,7 +15,6 @@ jobs:
steps: steps:
- checkout - checkout
- run: pip install ansible ansible-lint yamllint flake8 - run: pip install ansible ansible-lint yamllint flake8
- run: mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME}
- run: ansible-lint - run: ansible-lint
- run: yamllint . - run: yamllint .
- run: flake8 - run: flake8
...@@ -25,25 +24,21 @@ jobs: ...@@ -25,25 +24,21 @@ jobs:
parameters: parameters:
ansible: ansible:
type: string type: string
scenario:
type: string
steps: steps:
- checkout - checkout
- setup_remote_docker - setup_remote_docker
- run: mkdir -p ~/.ansible/roles && ln -s ~/project ~/.ansible/roles/${CIRCLE_PROJECT_REPONAME} - run: pip install "ansible~=<< parameters.ansible >>.0"
- run: pip install "ansible~=<<parameters.ansible >>.0"
- run: pip install -r test-requirements.txt - run: pip install -r test-requirements.txt
- run: molecule test -s default --destroy always - run:
- run: | no_output_timeout: 60m
if [[ -d 'molecule/alternative' ]]; then command: |
molecule test -s alternative --destroy always if [[ -n "${CIRCLE_PULL_REQUEST}" ]] && [[ '<< parameters.scenario >>' == 'latest' ]]; then
else echo 'Not running latest on PR'
echo 'No alternative test' else
fi molecule test -s '<< parameters.scenario >>' --destroy always
- run: | fi
if [[ -z "${CIRCLE_PULL_REQUEST}" ]] && [[ -d 'molecule/latest' ]]; then
molecule test -s latest --destroy always
else
echo 'Not running latest on PR'
fi
release: release:
executor: publisher executor: publisher
steps: steps:
...@@ -74,6 +69,12 @@ workflows: ...@@ -74,6 +69,12 @@ workflows:
ansible: ansible:
- "2.9" - "2.9"
- "2.10" - "2.10"
- "4.10"
- "5.1"
scenario:
- default
- alternative
- latest
filters: filters:
tags: tags:
only: /.*/ only: /.*/
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
hosts: all hosts: all
any_errors_fatal: true any_errors_fatal: true
roles: roles:
- ansible-node-exporter - cloudalchemy.node_exporter
pre_tasks: pre_tasks:
- name: Create node_exporter cert dir - name: Create node_exporter cert dir
file: file:
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
- hosts: all - hosts: all
any_errors_fatal: true any_errors_fatal: true
roles: roles:
- ansible-node-exporter - cloudalchemy.node_exporter
vars: vars:
node_exporter_web_listen_address: "127.0.0.1:9100" node_exporter_web_listen_address: "127.0.0.1:9100"
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
hosts: all hosts: all
any_errors_fatal: true any_errors_fatal: true
roles: roles:
- ansible-node-exporter - cloudalchemy.node_exporter
vars: vars:
node_exporter_version: latest node_exporter_version: latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment