Skip to content

Commit 5cd1989

Browse files
authored
Add CI for the OpenAPI specification and the API documentation (#201)
Add CI for the OpenAPI specification and the API documentation
2 parents da4c216 + a3fa314 commit 5cd1989

File tree

4 files changed

+33
-48
lines changed

4 files changed

+33
-48
lines changed

.travis.yml

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
1-
---
2-
language: go
3-
4-
go:
5-
- "1.13"
6-
7-
install: make deps
8-
script: make test
9-
1+
dist: bionic
2+
jobs:
3+
include:
4+
- language: go
5+
go: '1.13'
6+
os: windows
7+
install:
8+
- choco install make
9+
- make deps
10+
script: make test
11+
- language: go
12+
go: '1.13'
13+
os: osx
14+
install: make deps
15+
script: make test
16+
- language: go
17+
go: '1.13'
18+
os: linux
19+
install: make deps
20+
script: make test
21+
- language: node_js
22+
node_js: '12'
23+
os: windows
24+
- language: node_js
25+
node_js: '12'
26+
os: osx
27+
- language: node_js
28+
node_js: '12'
29+
os: linux
30+
cache: npm
1031
notifications:
1132
email: false

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ MIT. See [LICENSE](LICENSE) for more details.
8686

8787
[travis-img]: https://travis-ci.org/netlify/open-api.svg?branch=master
8888
[travis]: https://travis-ci.org/netlify/open-api
89-
[av]: https://ci.appveyor.com/project/netlify/open-api/branch/master
90-
[av-img]: https://ci.appveyor.com/api/projects/status/1g0m72jqhspar6q9/branch/master?svg=true
9189
[npm-img]: https://img.shields.io/npm/v/@netlify/open-api.svg
9290
[npm]: https://npmjs.org/package/@netlify/open-api
9391
[npm-js-img]: https://img.shields.io/npm/v/netlify.svg

appveyor.yml

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
},
5151
"scripts": {
5252
"prepublishOnly": "git push && git push --tags && gh-release",
53-
"prepare": "run-s lint build test",
53+
"prepare": "run-s test",
54+
"test": "run-s lint build unit",
5455
"start": "run-s lint build",
5556
"build": "run-s convert redoc",
5657
"convert": "node src/convert.js",
@@ -62,7 +63,7 @@
6263
"lint": "run-s eslint prettier",
6364
"eslint": "eslint --fix \"src/**/*.js\"",
6465
"prettier": "prettier --write --loglevel warn \"src/**/*.js\" \"*.{js,md,yml,json}\"",
65-
"test": "ava"
66+
"unit": "ava"
6667
},
6768
"engines": {
6869
"node": "12"

0 commit comments

Comments
 (0)