Skip to content

Commit

Permalink
Configuring the project to build in Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-morais committed Mar 15, 2015
1 parent 88bf873 commit ecded02
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
node_js:
- "0.10"
before_script:
- 'export CHROME_BIN=chromium-browser'
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g bower karma grunt-cli jshint
- npm install
- bower install

script:
- node_modules/karma/bin/karma start tests/karma.config.js --single-run
- grunt ci
13 changes: 13 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,17 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-angular-templates');
grunt.registerTask('default', 'watch');
grunt.registerTask('all', ['concat']);
grunt.registerTask('ci',
[
'jshint',
'ngtemplates',
'concat',
'uglify',
'copy:main',
'copy:css',
'copy:fontawesomeFonts',
'copy:fontawesomeCss',
'copy:dummy'
]
);
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"grunt-contrib-watch": "~0.6.1",
"grunt-karma": "~0.10.1",
"karma": "^0.12.31",
"karma-chrome-launcher": "~0.1",
"karma-coverage": "^0.2.7",
"karma-jasmine": "*",
"karma-ng-html2js-preprocessor": "^0.1.2",
Expand Down

0 comments on commit ecded02

Please sign in to comment.