Skip to content

Commit

Permalink
Merge pull request #2 from yannickglt/feat/add-travis
Browse files Browse the repository at this point in the history
Feat/add travis
  • Loading branch information
yannickglt authored and Yannick Galatol committed Jun 15, 2016
2 parents 1b58ec6 + e0467d9 commit f77edaa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js

sudo: false

cache:
apt: true
directories:
- node_modules

node_js:
- "0.12"
- "4"
- "6"

script:
- npm run build
- npm run test

before_script:
- mkdir -p dist reports

after_script:
- npm install coveralls
- cat ./reports/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ You may also be interested in:

## Usage

ESReflect uses `browserify-reflection` and `ESReflect` to unit tests private methods.
See the [API](API.md) documentation for an exhaustive list of classes and methods.

## Roadmap
Expand Down
7 changes: 4 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ module.exports = function (karma) {
reporters: ['progress', 'coverage'],

coverageReporter: {
type: 'cobertura',
dir: 'reports/coverage/',
file: 'coverage.xml'
type: 'lcovonly',
dir: 'reports',
subdir: 'coverage',
file: 'lcov.info'
},

browsers: ['PhantomJS'],
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esreflect",
"version": "0.0.1",
"version": "0.1.0",
"description": "ECMAScript library providing a reflection API for ECMAScript",
"main": "dist/esreflect.js",
"repository": {
Expand All @@ -20,14 +20,15 @@
"browserify": "^12.0.1",
"browserify-istanbul": "^1.0.0",
"browserify-shim": "^3.8.11",
"browserify-reflection": "~1.0.0",
"browserify-reflection": "^0.1.0",
"istanbul": "^0.4.2",
"jasmine-core": "^2.4.1",
"karma": "^0.13.15",
"karma-browserify": "^4.4.2",
"karma-coverage": "^0.5.3",
"karma-jasmine": "^0.3.6",
"karma-phantomjs-launcher": "^0.2.1",
"karma-reflection": "^0.1.0",
"phantomjs": "^1.9.19",
"watchify": "^3.6.1"
},
Expand Down

0 comments on commit f77edaa

Please sign in to comment.