Skip to content

Commit

Permalink
Code climate config and travis hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyms committed Aug 12, 2015
1 parent e970634 commit 22b26e4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Save as .codeclimate.yml (note leading .) in project root directory
languages:
JavaScript: true

exclude_paths:
- "dist/*"
- "docs/*"
- ".gen/*"
- ".tmp/*"
- "node_modules/*"
- "externs/*"
- "Gruntfile.js"
- "karma.conf.js"
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ language: node_js
node_js:
- '0.10'
before_script:
- npm install --quiet -g grunt-cli karma
- npm install --quiet -g grunt-cli karma codeclimate-test-reporter
- npm install
script: grunt build
after_success: ./publish.sh
after_success:
- codeclimate-test-reporter < ./.gen/coverage/report/lcov.info
- ./publish.sh
env:
global:
- GH_REF: github.com/zeusjs/widgets.git
Expand Down
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = function ( grunt ) {
'.tmp',
'dist/*',
'docs',
'.gen/*',
'publish_docs',
'!dist/.git*'
]
Expand Down Expand Up @@ -325,8 +326,8 @@ module.exports = function ( grunt ) {

grunt.registerTask( 'build', [
'lint',
'karma',
'clean',
'karma',
'sass',
'autoprefixer',
'html2js:main',
Expand Down
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ module.exports = function ( config ) {

coverageReporter: {
type: 'lcov',
dir: '.gen/coverage'
dir: '.gen/coverage',
subdir: 'report'
}
} );
};

0 comments on commit 22b26e4

Please sign in to comment.