Skip to content

Commit 3af8c1b

Browse files
authored
Merge pull request #42 from n-rodriguez/wip/sr
feat(semantic-release): add semantic-release
2 parents c48d421 + 1894649 commit 3af8c1b

13 files changed

Lines changed: 804 additions & 45 deletions

.gitignore

Lines changed: 121 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,122 @@
1-
.kitchen/
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a packager
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.kitchen
49+
.kitchen.local.yml
50+
kitchen.local.yml
51+
junit-*.xml
52+
53+
# Translations
54+
*.mo
55+
*.pot
56+
57+
# Django stuff:
58+
*.log
59+
local_settings.py
60+
61+
# Flask stuff:
62+
instance/
63+
.webassets-cache
64+
65+
# Scrapy stuff:
66+
.scrapy
67+
68+
# Sphinx documentation
69+
docs/_build/
70+
71+
# PyBuilder
72+
target/
73+
74+
# Jupyter Notebook
75+
.ipynb_checkpoints
76+
77+
# pyenv
78+
.python-version
79+
80+
# celery beat schedule file
81+
celerybeat-schedule
82+
83+
# SageMath parsed files
84+
*.sage.py
85+
86+
# dotenv
87+
.env
88+
89+
# virtualenv
90+
.venv
91+
venv/
92+
ENV/
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
104+
# mypy
105+
.mypy_cache/
106+
107+
# Bundler
2108
Gemfile.lock
109+
110+
# copied `.md` files used for conversion to `.rst` using `m2r`
111+
docs/*.md
112+
113+
# Vim
114+
*.sw?
115+
116+
## Collected when centralising formulas (check and sort)
117+
# `collectd-formula`
118+
.pytest_cache/
119+
/.idea/
120+
Dockerfile.*_*
121+
ignore/
122+
tmp/

.travis.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
---
44
stages:
55
- test
6+
- lint
7+
- name: release
8+
if: branch = master AND type != pull_request
69

710
sudo: required
811
cache: bundler
@@ -43,3 +46,41 @@ env:
4346

4447
script:
4548
- bin/kitchen verify ${INSTANCE}
49+
50+
jobs:
51+
include:
52+
# Define the `lint` stage (runs `yamllint` and `commitlint`)
53+
- stage: lint
54+
language: node_js
55+
node_js: lts/*
56+
before_install: skip
57+
script:
58+
# Install and run `yamllint`
59+
- pip install --user yamllint
60+
# yamllint disable-line rule:line-length
61+
- yamllint -s . .yamllint pillar.example test/salt/pillar/vim.sls
62+
# Install and run `commitlint`
63+
- npm install @commitlint/config-conventional -D
64+
- npm install @commitlint/travis-cli -D
65+
- commitlint-travis
66+
# Define the release stage that runs `semantic-release`
67+
- stage: release
68+
language: node_js
69+
node_js: lts/*
70+
before_install: skip
71+
script:
72+
# Update `AUTHORS.md`
73+
- export MAINTAINER_TOKEN=${GH_TOKEN}
74+
- go get github.com/myii/maintainer
75+
- maintainer contributor
76+
77+
# Install all dependencies required for `semantic-release`
78+
- npm install @semantic-release/changelog@3 -D
79+
- npm install @semantic-release/exec@3 -D
80+
- npm install @semantic-release/git@7 -D
81+
deploy:
82+
provider: script
83+
skip_cleanup: true
84+
script:
85+
# Run `semantic-release`
86+
- npx semantic-release@15

.yamllint

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
# Extend the `default` configuration provided by `yamllint`
5+
extends: default
6+
7+
# Files to ignore completely
8+
# 1. All YAML files under directory `node_modules/`, introduced during the Travis run
9+
ignore: |
10+
node_modules/
11+
12+
rules:
13+
line-length:
14+
# Increase from default of `80`
15+
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
16+
max: 88

FORMULA

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: vim
2+
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, MacOS
3+
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, MacOS
4+
version: 0.1.0
5+
release: 0
6+
minimum_version: 2017.7
7+
summary: Vim formula
8+
description: Formula to use to install and configure vim
9+
top_level_dir: vim

0 commit comments

Comments
 (0)