Skip to content

Commit

Permalink
ci: add semantic-release, update ci (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
austince committed May 28, 2019
1 parent 799f668 commit da01dba
Show file tree
Hide file tree
Showing 7 changed files with 9,677 additions and 2,995 deletions.
2 changes: 2 additions & 0 deletions .npmrc
@@ -0,0 +1,2 @@

//registry.npmjs.org/:_authToken = ${NPM_TOKEN}
11 changes: 11 additions & 0 deletions .releaserc.json
@@ -0,0 +1,11 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
],
"tagFormat": "${version}"
}
38 changes: 28 additions & 10 deletions .travis.yml
Expand Up @@ -3,18 +3,36 @@ node_js:
- 4 # to be removed 2018-04-01
- 6 # to be removed 2019-04-01
- 7 # to be removed 2017-06-30
- 8 # to be removed 2020-01
- 10 # to be removed 2021-01
- lts/* # safety net; don't remove
- node # safety net; don't remove
deploy:
provider: npm
email:
secure: O5Zs28RbWGOnyhlE8MoyUhjUF+oAhaxsO9m7T9isLLuMl3PpIiiaqjv/yEVBotCpWbdpi+qOSNfpqWZjB1v2nQoS6jxaErrgoZmkT/Fj4YMr8eYt9izG7bDZjY6w1sH6OHqVXineNMb5AKwozmyUjQjbbxBFZ+pFjPWwUhe9fTQ=
api_key:
secure: fM77hue6ws/ikKaCzUsy6o3urxBHH0YjNSP3Dzc1Qm6oBthe8AYMifV7O93JI3T9ne4jDJvXcCCxgCOBr7gYr7U2/W+X144MphuBbqlTRxusKKBYCtK0QatjM9Px07f1lWLhgcEbwAayr9l9JSSJk4y5T7zk0Ij02gHapB0PPv8=
'on':
tags: true
repo: chaijs/chai-http
all_branches: true

stages:
- test
- release

jobs:
include:
- stage: test
script:
- npm test
after_success:
- npm run coverage
- stage: release
node_js: 10
script: skip
deploy:
provider: script
skip_cleanup: true
script:
- npm run release
'on':
repo: chaijs/chai-http
branches:
only:
- master
env:
global:
- secure: DGaDDxh76Gv+qmu4SLuQDxmmZMpMiiVdIvveT1d3ly93zrqT7Pb9ur7P8Yz77AxU9UrMHEJ3Be05Uqe8xtTJCIora9io/tX4QLRtIXtRIOA3dYaYNBgXztQT7yzCi6E/L/DZa1+dNaGDpoUnLG0S3vpwhi3YjlWJDhLOfB3Txx0=
- secure: fM77hue6ws/ikKaCzUsy6o3urxBHH0YjNSP3Dzc1Qm6oBthe8AYMifV7O93JI3T9ne4jDJvXcCCxgCOBr7gYr7U2/W+X144MphuBbqlTRxusKKBYCtK0QatjM9Px07f1lWLhgcEbwAayr9l9JSSJk4y5T7zk0Ij02gHapB0PPv8=
12 changes: 11 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
# Chai HTTP [![Build Status](https://travis-ci.org/chaijs/chai-http.svg?branch=master)](https://travis-ci.org/chaijs/chai-http)
# Chai HTTP [![Build Status](https://travis-ci.org/chaijs/chai-http.svg?branch=master)](https://travis-ci.org/chaijs/chai-http) [![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)

> HTTP integration testing with Chai assertions.
Expand Down Expand Up @@ -372,6 +372,16 @@ expect(res).to.have.cookie('session_id', '1234');
expect(res).to.not.have.cookie('PHPSESSID');
```

## Releasing

`chai-http` is released with [`semantic-release`](https://github.com/semantic-release/semantic-release) using the plugins:
- [`commit-analyzer`](https://github.com/semantic-release/commit-analyzer) to determine the next version from commit messages.
- [`release-notes-generator`](https://github.com/semantic-release/release-notes-generator) to summarize release in
- [`changelog`](https://github.com/semantic-release/changelog) to update the CHANGELOG.md file.
- [`github`](https://github.com/semantic-release/github) to publish a [GitHub release](https://github.com/chaijs/chai-http/releases).
- [`git`](https://github.com/semantic-release/git) to commit release assets.
- [`npm`](https://github.com/semantic-release/npm) to publish to [npm](https://www.npmjs.com/package/chai-http).

## License

(The MIT License)
Expand Down

0 comments on commit da01dba

Please sign in to comment.