Skip to content

Commit

Permalink
chore(package): update semantic-release to version 12.2.2 (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Jan 14, 2018
1 parent 6fe0000 commit db064f5
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 22 deletions.
58 changes: 38 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
sudo: required
language: node_js
notifications:
email: false
node_js:
- 4
before_script:
- npm prune
- bin/quick-start-test.sh
# install pandoc cli tool for .rst to .md converting
- wget https://github.com/jgm/pandoc/releases/download/1.16.0.2/pandoc-1.16.0.2-1-amd64.deb
- sudo dpkg -i pandoc-1.16.0.2-1-amd64.deb
# convert .rst to .md (textlint package needs .md file format to work)
- find ./ -iname "*.rst" -type f -exec sh -c 'pandoc "${0}" -o "${0%.md}.md"' {} \;
# run spelling/grammar/style/deadlink checks using textlint see '.textlintrc' configuration
# file for details. https://github.com/textlint/textlint
- npm run textlint
after_success:
- npm run semantic-release
- npm run coverage

# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
except:
- /^v\d+\.\d+\.\d+$/
only:
- master
- /^greenkeeper.*$/

jobs:
include:
- stage: test
node_js: 4
script:
- npm run test
- npm run coverage
- node_js: 4
script: bin/quick-start-test.sh
- stage: docs
node_js: lts/*
script:
# install pandoc cli tool for .rst to .md converting
- wget https://github.com/jgm/pandoc/releases/download/1.16.0.2/pandoc-1.16.0.2-1-amd64.deb
- sudo dpkg -i pandoc-1.16.0.2-1-amd64.deb
# convert .rst to .md (textlint package needs .md file format to work)
- find ./ -iname "*.rst" -type f -exec sh -c 'pandoc "${0}" -o "${0%.md}.md"' {} \;
# run spelling/grammar/style/deadlink checks using textlint see '.textlintrc' configuration
# file for details. https://github.com/textlint/textlint
- npm run textlint
- stage: release
node_js: lts/*
script:
- npm run semantic-release

stages:
- test
- name: docs
if: branch = master
- name: release
if: branch = master
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"nock": "^9.0.0",
"proxyquire": "^1.7.4",
"request": "^2.72.0",
"semantic-release": "^7.0.1",
"semantic-release": "^12.2.2",
"simple-mock": "^0.8.0",
"standard": "^10.0.0",
"tap": "^11.0.0",
Expand Down Expand Up @@ -70,7 +70,7 @@
},
"scripts": {
"coverage": "tap --coverage-report=text-lcov | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"semantic-release": "semantic-release",
"start": "./bin/start.js",
"pretest": "standard",
"test": "tap --100 --jobs-auto './test/{unit,integration}/**/*-test.js'",
Expand Down

0 comments on commit db064f5

Please sign in to comment.