Explorar el Código

Added Travis configuration and new badges (README).

Kamil Piechaczek hace 9 años
padre
commit
6c91aa66b2
Se han modificado 2 ficheros con 31 adiciones y 1 borrados
  1. 25 0
      packages/ckeditor5-image/.travis.yml
  2. 6 1
      packages/ckeditor5-image/README.md

+ 25 - 0
packages/ckeditor5-image/.travis.yml

@@ -0,0 +1,25 @@
+sudo: required
+dist: trusty
+addons:
+  apt:
+    sources:
+      - google-chrome
+    packages:
+      - google-chrome-stable
+language: node_js
+node_js:
+  - "6"
+cache:
+  - node_modules
+before_install:
+  - export CHROME_BIN=chromium-browser
+  - export DISPLAY=:99.0
+  - sh -e /etc/init.d/xvfb start
+install:
+  - npm install
+  - npm install @ckeditor/ckeditor5-dev-tests
+  - npm install codeclimate-test-reporter
+script:
+  - node_modules/.bin/ckeditor5-dev-tests --coverage
+after_success:
+  - node_modules/.bin/codeclimate-test-reporter < .build/coverage/lcov.info

+ 6 - 1
packages/ckeditor5-image/README.md

@@ -1,7 +1,12 @@
 CKEditor 5 Image Feature
 ========================================
 
-[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-image/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-image?type=dev)
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-image.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-image)
+[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-image.svg)](https://travis-ci.org/ckeditor/ckeditor5-image)
+[![Test Coverage](https://codeclimate.com/github/ckeditor/ckeditor5-image/badges/coverage.svg)](https://codeclimate.com/github/ckeditor/ckeditor5-image/coverage)
+[![Code Climate](https://codeclimate.com/github/ckeditor/ckeditor5-image/badges/gpa.svg)](https://codeclimate.com/github/ckeditor/ckeditor5-image)
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-image/status.svg)](https://david-dm.org/ckeditor/ckeditor5-image#info=dependencies)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-image/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-image#info=devDependencies)
 
 Image feature for CKEditor 5. More information about the project can be found at the following URL: <https://github.com/ckeditor/ckeditor5-image>.