chore(build): add check for merge conflicts, ddescribe, and iit

This commit is contained in:
Brian Ford 2013-07-03 11:10:23 -07:00 committed by Igor Minar
parent 03216760ec
commit 31631b2b28
3 changed files with 23 additions and 2 deletions

View file

@ -12,7 +12,7 @@ before_script:
- export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev` - export SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
- ./lib/sauce/sauce_connect_setup.sh - ./lib/sauce/sauce_connect_setup.sh
- npm install -g grunt-cli - npm install -g grunt-cli
- grunt package - grunt ci-checks package
- ./lib/sauce/sauce_connect_block.sh - ./lib/sauce/sauce_connect_block.sh
script: script:

View file

@ -8,6 +8,8 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-jasmine-node'); grunt.loadNpmTasks('grunt-contrib-jasmine-node');
grunt.loadNpmTasks('grunt-ddescribe-iit');
grunt.loadNpmTasks('grunt-merge-conflict');
grunt.loadNpmTasks('grunt-shell'); grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-parallel'); grunt.loadNpmTasks('grunt-parallel');
grunt.loadTasks('lib/grunt'); grunt.loadTasks('lib/grunt');
@ -194,6 +196,22 @@ module.exports = function(grunt) {
run: { spec: 'docs/spec' } run: { spec: 'docs/spec' }
}, },
"ddescribe-iit": {
files: [
'test/**/*.js',
'!test/ngScenario/DescribeSpec.js'
]
},
"merge-conflict": {
files: [
'src/**/*',
'test/**/*',
'docs/**/*',
'css/**/*'
]
},
copy: { copy: {
i18n: { i18n: {
files: [ files: [
@ -225,5 +243,6 @@ module.exports = function(grunt) {
grunt.registerTask('test:e2e', ['connect:testserver', 'test:end2end']); grunt.registerTask('test:e2e', ['connect:testserver', 'test:end2end']);
grunt.registerTask('webserver', ['connect:devserver']); grunt.registerTask('webserver', ['connect:devserver']);
grunt.registerTask('package', ['shell:bower','clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']); grunt.registerTask('package', ['shell:bower','clean', 'buildall', 'minall', 'collect-errors', 'docs', 'copy', 'write', 'compress']);
grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict']);
grunt.registerTask('default', ['package']); grunt.registerTask('default', ['package']);
}; };

View file

@ -28,7 +28,9 @@
"showdown": "0.3.1", "showdown": "0.3.1",
"rewire": "1.1.3", "rewire": "1.1.3",
"grunt-contrib-jasmine-node": "~0.1.1", "grunt-contrib-jasmine-node": "~0.1.1",
"grunt-parallel": "~0.2.0" "grunt-parallel": "~0.2.0",
"grunt-ddescribe-iit": "~0.0.1",
"grunt-merge-conflict": "~0.0.1"
}, },
"licenses": [ "licenses": [
{ {