Skip to content

Commit f25b404

Browse files
committed
feat(semantic-release): implement an automated changelog
1 parent 2e59df4 commit f25b404

12 files changed

+1102
-116
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

.travis.yml

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,54 @@
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-
5-
rvm:
6-
- 2.3.5
9+
language: ruby
710

811
services:
912
- docker
1013

11-
script:
12-
- bundle exec kitchen test
13-
1414
env:
1515
matrix:
1616
- DISTRIB=debian:stretch/9
1717
- DISTRIB=ubuntu:xenial/16.04
1818
- DISTRIB=ubuntu:bionic/18.04
19+
20+
script:
21+
- bundle exec kitchen test
22+
23+
jobs:
24+
include:
25+
# Define the commitlint stage
26+
- stage: commitlint
27+
language: node_js
28+
node_js: lts/*
29+
before_install: skip
30+
script:
31+
- npm install @commitlint/config-conventional -D
32+
- npm install @commitlint/travis-cli -D
33+
- commitlint-travis
34+
# Define the release stage that runs semantic-release
35+
- stage: release
36+
language: node_js
37+
node_js: lts/*
38+
before_install: skip
39+
script:
40+
# Update `AUTHORS.md`
41+
- export MAINTAINER_TOKEN=${GH_TOKEN}
42+
- go get github.com/myii/maintainer
43+
- maintainer contributor
44+
45+
# Install all dependencies required for `semantic-release`
46+
- npm install @semantic-release/changelog@3 -D
47+
- npm install @semantic-release/exec@3 -D
48+
- npm install @semantic-release/git@7 -D
49+
deploy:
50+
provider: script
51+
skip_cleanup: true
52+
script:
53+
# Run `semantic-release`
54+
- 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: ufw
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: 1.0
5+
release: 1
6+
minimum_version: 2016.11
7+
summary: UFW formula
8+
description: Formula to use to install and configure ufw
9+
top_level_dir: ufw

LICENSE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Apache License
1+
Apache License
22
Version 2.0, January 2004
33
http://www.apache.org/licenses/
44

@@ -199,4 +199,3 @@ Apache License
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202-

README.md

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

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
};

0 commit comments

Comments
 (0)