Skip to content

Commit 3c485ec

Browse files
authored
Merge pull request #12 from n-rodriguez/wip/sr
feat(semantic-release): implement an automated changelog
2 parents 2494448 + 0193e22 commit 3c485ec

18 files changed

+1305
-111
lines changed

.gitignore

Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,110 @@
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+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
local_settings.py
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# pyenv
77+
.python-version
78+
79+
# celery beat schedule file
80+
celerybeat-schedule
81+
82+
# SageMath parsed files
83+
*.sage.py
84+
85+
# dotenv
86+
.env
87+
88+
# virtualenv
89+
.venv
90+
venv/
91+
ENV/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
# Bundler
2107
Gemfile.lock
108+
109+
# copied `.md` files used for conversion to `.rst` using `m2r`
110+
docs/*.md

.kitchen.yml

Lines changed: 0 additions & 56 deletions
This file was deleted.

.travis.yml

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,57 @@
1-
language: ruby
1+
stages:
2+
- test
3+
- commitlint
4+
- name: release
5+
if: branch = master AND type != pull_request
6+
27
sudo: required
38
cache: bundler
4-
rvm:
5-
- 2.3.5
9+
language: ruby
10+
611
services:
712
- docker
8-
script:
9-
- bundle exec kitchen test
13+
14+
# Make sure the instances listed below match up with
15+
# the `platforms` defined in `kitchen.yml`
1016
env:
1117
matrix:
12-
- DISTRIB=debian:wheezy/7
13-
- DISTRIB=debian:jessie/8
14-
- DISTRIB=debian:stretch/9
15-
- DISTRIB=ubuntu:xenial/16.04
18+
- INSTANCE: debian-9
19+
- INSTANCE: debian-8
20+
- INSTANCE: ubuntu-1804
21+
- INSTANCE: ubuntu-1604
22+
23+
script:
24+
- bundle exec kitchen verify ${INSTANCE}
25+
26+
jobs:
27+
include:
28+
# Define the commitlint stage
29+
- stage: commitlint
30+
language: node_js
31+
node_js: lts/*
32+
before_install: skip
33+
script:
34+
- npm install @commitlint/config-conventional -D
35+
- npm install @commitlint/travis-cli -D
36+
- commitlint-travis
37+
# Define the release stage that runs semantic-release
38+
- stage: release
39+
language: node_js
40+
node_js: lts/*
41+
before_install: skip
42+
script:
43+
# Update `AUTHORS.md`
44+
- export MAINTAINER_TOKEN=${GH_TOKEN}
45+
- go get github.com/myii/maintainer
46+
- maintainer contributor
47+
48+
# Install all dependencies required for `semantic-release`
49+
- npm install @semantic-release/changelog@3 -D
50+
- npm install @semantic-release/exec@3 -D
51+
- npm install @semantic-release/git@7 -D
52+
deploy:
53+
provider: script
54+
skip_cleanup: true
55+
script:
56+
# Run `semantic-release`
57+
- npx semantic-release@15

FORMULA

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: syslog_ng
2+
os: Debian, Ubuntu, RedHat, Fedora, CentOS, Suse, openSUSE
3+
os_family: Debian, RedHat, Suse
4+
version: 1.0
5+
release: 1
6+
minimum_version: 2017.7
7+
summary: Syslog-NG formula
8+
description: Formula to use to install and configure syslog_ng
9+
top_level_dir: syslog_ng

Gemfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
source 'https://rubygems.org'
2-
ruby '2.3.5'
32

4-
gem 'test-kitchen'
5-
gem 'kitchen-docker'
6-
gem 'kitchen-salt'
7-
gem 'kitchen-inspec'
8-
gem 'rake'
3+
gem 'kitchen-docker', '>= 2.9'
4+
gem 'kitchen-salt', '>= 0.6.0'
5+
gem 'kitchen-inspec', '>= 1.1'

0 commit comments

Comments
 (0)