Skip to content

Commit 235311e

Browse files
committed
resync with upstreamoss
1 parent cfd869a commit 235311e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1394
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../..
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
skip_list:
2+
- '106' # Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
3+
# This is a basic workflow to help you get started with Actions
4+
5+
name: Molecule
6+
7+
# Controls when the action will run. Triggers the workflow on push or pull request
8+
# events but only for the master branch
9+
on:
10+
push:
11+
pull_request:
12+
branches:
13+
- master
14+
- tags/*
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
19+
lint:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v2
27+
28+
- name: install lint prerequisite
29+
run: |
30+
sudo apt -y install python3-setuptools ansible-lint
31+
32+
- name: Install molecule
33+
run: |
34+
sudo apt update
35+
sudo apt -y install python3-setuptools python3 python3-pip docker vagrant
36+
sudo pip3 install wheel
37+
sudo pip3 install molecule testinfra yamllint ansible-lint flake8 molecule-vagrant
38+
39+
- name: molecule lint
40+
run: |
41+
molecule lint
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
**/__pycache__
3+
venv/
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
dist: bionic
3+
4+
language: python
5+
python:
6+
- "3.8"
7+
8+
addons:
9+
apt:
10+
sources:
11+
- sourceline: 'deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main'
12+
key_url: 'https://apt.releases.hashicorp.com/gpg'
13+
update: true
14+
packages:
15+
- bridge-utils
16+
- dnsmasq-base
17+
- ebtables
18+
- libvirt-bin
19+
- libvirt-dev
20+
- qemu-kvm
21+
- qemu-utils
22+
- ruby-dev
23+
- ca-certificates
24+
- curl
25+
- gcc
26+
- iproute2
27+
- sudo
28+
- vagrant
29+
30+
install:
31+
- vagrant plugin install vagrant-libvirt
32+
- pip install wheel pyopenssl
33+
- pip install netaddr python-vagrant yamllint testinfra flake8
34+
- pip install ansible ansible-lint
35+
- pip install molecule molecule-vagrant python-vagrant
36+
- sudo chmod o+rwx /var/run/libvirt/libvirt-sock
37+
38+
script:
39+
- molecule test --scenario-name kvm
40+
- molecule test --scenario-name kvmsinglelv
41+
- molecule test --scenario-name kvmonlyvg
42+
notifications:
43+
webhooks: https://galaxy.ansible.com/api/v1/notifications/
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
# Based on ansible-lint config
3+
extends: default
4+
5+
ignore: |
6+
venv/
7+
8+
rules:
9+
braces:
10+
max-spaces-inside: 1
11+
level: error
12+
brackets:
13+
max-spaces-inside: 1
14+
level: error
15+
colons:
16+
max-spaces-after: -1
17+
level: error
18+
commas:
19+
max-spaces-after: -1
20+
level: error
21+
comments: disable
22+
comments-indentation: disable
23+
document-start: disable
24+
empty-lines:
25+
max: 3
26+
level: error
27+
hyphens:
28+
level: error
29+
indentation: disable
30+
key-duplicates: enable
31+
line-length: disable
32+
new-line-at-end-of-file: disable
33+
new-lines:
34+
type: unix
35+
trailing-spaces: disable
36+
truthy: disable

0 commit comments

Comments
 (0)