Skip to content

Commit 7722d47

Browse files
# Conflicts: # .travis.yml
2 parents d738294 + 19c7858 commit 7722d47

12 files changed

Lines changed: 4487 additions & 4952 deletions

.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Git attributes
2+
# https://git-scm.com/docs/gitattributes
3+
# https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
4+
5+
# Normalize line endings for all files that git determines to be text.
6+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvalueauto
7+
* text=auto
8+
9+
# Normalize line endings to LF on checkin, and do NOT convert to CRLF when checking-out on Windows.
10+
# https://git-scm.com/docs/gitattributes#gitattributes-Settostringvaluelf
11+
*.txt text eol=lf
12+
*.html text eol=lf
13+
*.md text eol=lf
14+
*.css text eol=lf
15+
*.scss text eol=lf
16+
*.map text eol=lf
17+
*.js text eol=lf
18+
*.jsx text eol=lf
19+
*.ts text eol=lf
20+
*.tsx text eol=lf
21+
*.json text eol=lf
22+
*.yml text eol=lf
23+
*.yaml text eol=lf
24+
*.xml text eol=lf
25+
*.svg text eol=lf

.travis.yml

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,64 @@
33
# https://docs.travis-ci.com/user/customizing-the-build/
44
# https://docs.travis-ci.com/user/migrating-from-legacy/
55

6-
dist: trusty
7-
sudo: required # Required for headless Chrome
6+
filter_secrets: false
87
language: node_js
98

10-
addons:
11-
firefox: latest
12-
chrome: stable
9+
node_js:
10+
- 10
11+
- 8
12+
- 6
1313

14-
matrix:
15-
include:
16-
# Node 10 + Browser tests
17-
- node_js: 10
18-
env: KARMA=true
19-
20-
# Node 8 + SauceLabs tests
21-
- node_js: 8
22-
env: KARMA=true SAUCE=true
23-
24-
# Node 6 tests
25-
- node_js: 6
14+
os:
15+
- linux
16+
- osx
17+
- windows
2618

2719
before_script:
28-
# Setup a virtual display for browser testing
29-
- export DISPLAY=:99.0
30-
- sh -e /etc/init.d/xvfb start
20+
- npm run lint
3121

32-
script: npm run lint && npm run test:typescript && npm run coverage
22+
script:
23+
- npm run test:typescript
24+
- npm run coverage:node
3325

3426
after_success:
3527
# concatenate all code-coverage data into a single file
3628
- ls -Rlh coverage/*/lcov.info
3729
- cat coverage/*/lcov.info > ./coverage/lcov.info
3830

39-
# send code-coverage data to Codacy
40-
- cat ./coverage/lcov.info | node_modules/.bin/codacy-coverage -p .
41-
4231
# send code-coverage data to Coveralls
4332
- cat ./coverage/lcov.info | coveralls
33+
34+
jobs:
35+
include:
36+
- name: Browser tests (Linux)
37+
os: linux
38+
script: npm run coverage:browser
39+
addons:
40+
firefox: latest
41+
chrome: stable
42+
43+
- name: Browser tests (Mac)
44+
os: osx
45+
script: npm run coverage:browser
46+
addons:
47+
firefox: latest
48+
chrome: stable
49+
50+
- name: Browser tests (Windows via SauceLabs)
51+
os: linux
52+
script: npm run coverage:browser
53+
env: WINDOWS=true
54+
55+
- stage: Deploy
56+
name: Publish to npm
57+
script: npm run build
58+
after_success: true
59+
deploy:
60+
provider: npm
61+
email: $NPM_EMAIL
62+
api_key: $NPM_API_KEY
63+
skip_cleanup: true
64+
on:
65+
tags: true
66+
branch: master

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ JSON Schema $Ref Parser
22
============================
33
#### Parse, Resolve, and Dereference JSON Schema $ref pointers
44

5-
[![Build Status](https://api.travis-ci.org/APIDevTools/json-schema-ref-parser.svg?branch=master)](https://travis-ci.org/APIDevTools/json-schema-ref-parser)
6-
[![Dependencies](https://david-dm.org/APIDevTools/json-schema-ref-parser.svg)](https://david-dm.org/APIDevTools/json-schema-ref-parser)
5+
[![Build Status](https://api.travis-ci.com/APIDevTools/json-schema-ref-parser.svg?branch=master)](https://travis-ci.com/APIDevTools/json-schema-ref-parser)
76
[![Coverage Status](https://coveralls.io/repos/github/APIDevTools/json-schema-ref-parser/badge.svg?branch=master)](https://coveralls.io/github/APIDevTools/json-schema-ref-parser)
8-
[![Codacy Score](https://api.codacy.com/project/badge/d8abfe5e9a4044b89bd9f4b999d4a574)](https://www.codacy.com/public/JamesMessinger/json-schema-ref-parser)
9-
[![Inline docs](https://inch-ci.org/github/APIDevTools/json-schema-ref-parser.svg?branch=master&style=shields)](https://inch-ci.org/github/APIDevTools/json-schema-ref-parser)
107

118
[![npm](https://img.shields.io/npm/v/json-schema-ref-parser.svg)](https://www.npmjs.com/package/json-schema-ref-parser)
9+
[![Dependencies](https://david-dm.org/APIDevTools/json-schema-ref-parser.svg)](https://david-dm.org/APIDevTools/json-schema-ref-parser)
1210
[![License](https://img.shields.io/npm/l/json-schema-ref-parser.svg)](LICENSE)
1311

14-
[![Browser Compatibility](https://saucelabs.com/browser-matrix/json-schema-parser.svg)](https://saucelabs.com/u/json-schema-parser)
12+
13+
[![OS and Browser Compatibility](https://apidevtools.org/img/badges/ci-badges-with-ie.svg)](https://travis-ci.com/APIDevTools/json-schema-ref-parser)
1514

1615

1716
The Problem:
@@ -105,7 +104,7 @@ var $RefParser = require('json-schema-ref-parser');
105104
Reference [`ref-parser.js`](dist/ref-parser.js) or [`ref-parser.min.js`](dist/ref-parser.min.js) in your HTML:
106105

107106
```html
108-
<script src="https://cdn.rawgit.com/JS-DevTools/json-schema-ref-parser/dist/ref-parser.js"></script>
107+
<script src="https://unpkg.com/json-schema-ref-parser/dist/ref-parser.min.js"></script>
109108
<script>
110109
$RefParser.dereference(mySchema)
111110
.then(function(schema) {
@@ -149,3 +148,11 @@ To build/test the project locally on your computer:
149148
License
150149
--------------------------
151150
JSON Schema $Ref Parser is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.
151+
152+
Big Thanks To
153+
--------------------------
154+
Thanks to these awesome companies for their support of Open Source developers ❤
155+
156+
[![Travis CI](https://jsdevtools.org/img/badges/travis-ci.svg)](https://travis-ci.com)
157+
[![SauceLabs](https://jsdevtools.org/img/badges/sauce-labs.svg)](https://saucelabs.com)
158+
[![Coveralls](https://jsdevtools.org/img/badges/coveralls.svg)](https://coveralls.io)

0 commit comments

Comments
 (0)