Skip to content

Commit 55fff9c

Browse files
committed
build(release): Set up semantic-release workflow
1 parent bda9f3c commit 55fff9c

9 files changed

Lines changed: 215 additions & 10760 deletions

File tree

.gitignore

Lines changed: 121 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,133 @@
1+
2+
# Created by https://www.gitignore.io/api/macos,windows,linux,node
3+
4+
### Linux ###
5+
*~
6+
7+
# temporary files which can be created if a process still has a handle open of a deleted file
8+
.fuse_hidden*
9+
10+
# KDE directory preferences
11+
.directory
12+
13+
# Linux trash folder which might appear on any partition or disk
14+
.Trash-*
15+
16+
# .nfs files are created when an open file is removed but is still being accessed
17+
.nfs*
18+
19+
### macOS ###
20+
*.DS_Store
21+
.AppleDouble
22+
.LSOverride
23+
24+
# Icon must end with two \r
25+
Icon
26+
27+
# Thumbnails
128
._*
2-
.cache
3-
.DS_Store
29+
30+
# Files that might appear in the root of a volume
31+
.DocumentRevisions-V100
32+
.fseventsd
33+
.Spotlight-V100
34+
.TemporaryItems
35+
.Trashes
36+
.VolumeIcon.icns
37+
.com.apple.timemachine.donotpresent
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
### Node ###
47+
# Logs
48+
logs
49+
*.log
50+
npm-debug.log*
51+
yarn-debug.log*
52+
yarn-error.log*
53+
54+
# Runtime data
55+
pids
56+
*.pid
57+
*.seed
58+
*.pid.lock
59+
60+
# Directory for instrumented libs generated by jscoverage/JSCover
61+
lib-cov
462

563
# Coverage directory used by tools like istanbul
664
coverage
765

866
# nyc test coverage
967
.nyc_output
1068

69+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
70+
.grunt
71+
72+
# Bower dependency directory (https://bower.io/)
73+
bower_components
74+
75+
# node-waf configuration
76+
.lock-wscript
77+
78+
# Compiled binary addons (http://nodejs.org/api/addons.html)
79+
build/Release
80+
1181
# Dependency directories
1282
node_modules/
83+
jspm_packages/
1384

14-
# Package specific
15-
test/fixtures/.tmp
16-
lib
85+
# Typescript v1 declaration files
86+
typings/
87+
88+
# Optional npm cache directory
89+
.npm
90+
91+
# Optional eslint cache
92+
.eslintcache
93+
94+
# Optional REPL history
95+
.node_repl_history
96+
97+
# Output of 'npm pack'
98+
*.tgz
99+
100+
# Yarn Integrity file
101+
.yarn-integrity
102+
103+
# dotenv environment variables file
104+
.env
17105

106+
107+
### Windows ###
108+
# Windows thumbnail cache files
109+
Thumbs.db
110+
ehthumbs.db
111+
ehthumbs_vista.db
112+
113+
# Folder config file
114+
Desktop.ini
115+
116+
# Recycle Bin used on file shares
117+
$RECYCLE.BIN/
118+
119+
# Windows Installer files
120+
*.cab
121+
*.msi
122+
*.msm
123+
*.msp
124+
125+
# Windows shortcuts
126+
*.lnk
127+
128+
# End of https://www.gitignore.io/api/macos,windows,linux,node
129+
130+
yarn.lock
131+
package-lock.json
132+
test/fixtures/.tmp
133+
lib

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
sudo: false
2-
dist: trusty
31
language: node_js
42
node_js:
5-
- node
3+
- 8
4+
- 6
65
- 4
76
os:
87
- linux
@@ -12,24 +11,25 @@ branches:
1211
- master
1312
- /^greenkeeper.*$/
1413
git:
15-
depth: 3
16-
cache:
17-
directories: node_modules
18-
env:
19-
global:
20-
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
14+
depth: 999
2115
before_install:
22-
- if [[ `npm -v` != 5* ]]; then npm install -g npm@5; fi
23-
- npm install -g greenkeeper-lockfile@1
24-
before_script:
25-
- greenkeeper-lockfile-update
26-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 --retry 3 -o ./cc-test-reporter; fi
27-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 --retry 3 -o ./cc-test-reporter; fi
28-
- chmod +x ./cc-test-reporter
16+
- if [[ `npm -v` < 5* ]]; then npm install -g npm@5; fi
17+
install:
18+
- travis_retry npm install
2919
script:
3020
- npm run test
31-
after_script:
32-
- greenkeeper-lockfile-upload
33-
after_success:
34-
- if [ -n "${CC_TEST_REPORTER_ID:-}" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -d; fi
35-
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
21+
env:
22+
- BUILD_LEADER_ID=7
23+
jobs:
24+
include:
25+
- stage: release
26+
node_js: 8
27+
os: linux
28+
install:
29+
- travis_retry npm install
30+
script:
31+
- npm run test
32+
after_success:
33+
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
34+
- npm run coverage
35+
- npm run semantic-release

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--install.no-lockfile true

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
Karma preprocessor to compile postcss and scss files with [Postcss](https://github.com/postcss/postcss).
44

5-
[![Travis](https://img.shields.io/travis/vanduynslagerp/karma-postcss-preprocessor.svg)](https://travis-ci.org/vanduynslagerp/karma-postcss-preprocessor)
6-
[![AppVeyor](https://img.shields.io/appveyor/ci/vanduynslagerp/karma-postcss-preprocessor.svg)](https://ci.appveyor.com/project/vanduynslagerp/karma-postcss-preprocessor)
7-
[![Code Climate](https://img.shields.io/codeclimate/github/vanduynslagerp/karma-postcss-preprocessor.svg)](https://codeclimate.com/github/vanduynslagerp/karma-postcss-preprocessor)
8-
[![Code Climate](https://img.shields.io/codeclimate/issues/github/vanduynslagerp/karma-postcss-preprocessor.svg)](https://codeclimate.com/github/vanduynslagerp/karma-postcss-preprocessor/issues)
9-
[![Codecov](https://img.shields.io/codecov/c/github/vanduynslagerp/karma-postcss-preprocessor.svg)](https://codecov.io/gh/vanduynslagerp/karma-postcss-preprocessor)
10-
115
[![npm](https://img.shields.io/npm/v/@metahub/karma-postcss-preprocessor.svg)](https://www.npmjs.com/package/@metahub/karma-postcss-preprocessor)
126
[![npm](https://img.shields.io/npm/dt/@metahub/karma-postcss-preprocessor.svg)](https://www.npmjs.com/package/@metahub/karma-postcss-preprocessor)
137
[![Greenkeeper badge](https://badges.greenkeeper.io/vanduynslagerp/karma-postcss-preprocessor.svg)](https://greenkeeper.io/)
148
[![license](https://img.shields.io/github/license/vanduynslagerp/karma-postcss-preprocessor.svg)](https://github.com/vanduynslagerp/karma-postcss-preprocessor/blob/master/LICENSE)
9+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
10+
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
11+
12+
[![Travis](https://img.shields.io/travis/vanduynslagerp/karma-postcss-preprocessor.svg)](https://travis-ci.org/vanduynslagerp/karma-postcss-preprocessor)
13+
[![AppVeyor](https://img.shields.io/appveyor/ci/vanduynslagerp/karma-postcss-preprocessor.svg)](https://ci.appveyor.com/project/vanduynslagerp/karma-postcss-preprocessor)
14+
[![Code Climate](https://img.shields.io/codeclimate/github/vanduynslagerp/karma-postcss-preprocessor.svg)](https://codeclimate.com/github/vanduynslagerp/karma-postcss-preprocessor)
15+
[![Codecov](https://img.shields.io/codecov/c/github/vanduynslagerp/karma-postcss-preprocessor.svg)](https://codecov.io/gh/vanduynslagerp/karma-postcss-preprocessor)
1516

1617
## Installation
1718

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ version: '{build}'
22
environment:
33
matrix:
44
- nodejs_version: '4'
5-
- nodejs_version: '7'
5+
- nodejs_version: '6'
6+
- nodejs_version: '8'
67
branches:
78
only:
89
- master
910
- /^greenkeeper.*$/
1011
install:
1112
- ps: Install-Product node $env:nodejs_version
12-
- IF %nodejs_version% LSS 5 npm -g install npm@3
13-
- npm install
13+
- IF %nodejs_version% LSS 5 npm -g install npm@5
14+
- appveyor-retry npm install
1415
platform:
1516
- x86
1617
- x64

commitlint.config.js

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

0 commit comments

Comments
 (0)