Skip to content

Commit

Permalink
Updated config for molecule 3 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
apollo13 authored Feb 22, 2020
1 parent 50a820b commit 87d7376
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
---
language: python
os: linux

services: docker

branches:
only:
- master

env:
global:
- ROLE_NAME: borgbackup
matrix:
jobs:
- MOLECULE_DISTRO: centos:7
- MOLECULE_DISTRO: centos:8
- MOLECULE_DISTRO: ubuntu:18.04
Expand All @@ -16,7 +22,7 @@ env:

install:
# Install test dependencies.
- pip install ansible>=2.8 molecule[docker]
- pip install ansible>=2.9.5 molecule[docker,lint] testinfra

before_script:
# Use actual Ansible Galaxy role name for the project directory.
Expand Down
2 changes: 2 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

extends: default

rules:
Expand Down
11 changes: 4 additions & 7 deletions library/borgbase.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/python
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.borgbase_api_client.client import GraphQLClient
from ansible.module_utils.borgbase_api_client.mutations import SSH_ADD
from ansible.module_utils.borgbase_api_client.queries import KEY_DETAILS

DOCUMENTATION = """
---
Expand Down Expand Up @@ -33,12 +36,6 @@
delegate_to: localhost
"""

from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.borgbase_api_client.client import GraphQLClient
from ansible.module_utils.borgbase_api_client.mutations import SSH_ADD
from ansible.module_utils.borgbase_api_client.queries import KEY_DETAILS


REPO_ADD = """
mutation repoAdd(
$name: String
Expand Down
File renamed without changes.
11 changes: 5 additions & 6 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: borg
groups:
Expand All @@ -43,8 +41,6 @@ platforms:
<<: *platform_defaults
provisioner:
name: ansible
lint:
name: ansible-lint
inventory:
host_vars:
borg:
Expand Down Expand Up @@ -76,5 +72,8 @@ provisioner:

verifier:
name: testinfra
lint:
name: flake8

lint: |
yamllint .
ansible-lint
flake8

0 comments on commit 87d7376

Please sign in to comment.