Skip to content

Commit

Permalink
Add opensuse to CI tests (#305)
Browse files Browse the repository at this point in the history
Adds openSUSE 15.2 CI tests for all non-EOL Ansible versions (2.8, 2.9 and 2.10).
  • Loading branch information
KSerrania committed Oct 8, 2020
1 parent 6235d3b commit 289a32b
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ commands:
- run: dd-agent info || true
- run: ps aux | grep -v grep | grep datadog-agent

test_agent:
test_agent_install_downgrade:
parameters:
version:
type: string
Expand All @@ -48,6 +48,14 @@ commands:
version: <<parameters.version>>
- downgrade_agent_5_23_0

test_agent_install:
parameters:
version:
type: string
steps:
- checkout
- install_agent:
version: <<parameters.version>>

jobs:
# TODO: Use 2.10 image, fix file permission errors (E208) that arise.
Expand All @@ -59,9 +67,22 @@ jobs:
- run: pip install ansible-lint
- run: ansible-lint -v .

# Agent 5
test_install_downgrade:
parameters:
ansible_version:
type: string
agent_version:
type: string
os:
type: string
docker:
- image: datadog/docker-library:ansible_<<parameters.os>>_<<parameters.ansible_version>>
steps:
- checkout
- test_agent_install_downgrade:
version: "<<parameters.agent_version>>"

test:
test_install:
parameters:
ansible_version:
type: string
Expand All @@ -73,17 +94,24 @@ jobs:
- image: datadog/docker-library:ansible_<<parameters.os>>_<<parameters.ansible_version>>
steps:
- checkout
- test_agent:
- test_agent_install:
version: "<<parameters.agent_version>>"

workflows:
version: 2
test_datadog_role:
jobs:
- ansible_lint
- test:
- test_install_downgrade:
matrix:
parameters:
ansible_version: ["2_6", "2_7", "2_8", "2_9", "2_10"]
agent_version: ["5", "6", "7"]
os: ["debian", "centos"]

- test_install:
matrix:
parameters:
ansible_version: ["2_8", "2_9", "2_10"]
agent_version: ["6", "7"]
os: ["suse"]

0 comments on commit 289a32b

Please sign in to comment.