mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-19 03:51:07 +00:00
chore(build): add check for merge conflicts, ddescribe, and iit
This commit is contained in:
parent
03216760ec
commit
31631b2b28
3 changed files with 23 additions and 2 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
19
Gruntfile.js
19
Gruntfile.js
|
|
@ -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']);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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": [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue