Skip to content

Commit 929299a

Browse files
committed
Fix CI normalization regression of 03399dc.
1 parent 27151c2 commit 929299a

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# grunt-contrib-internal v1.1.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-internal.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-internal) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/vhmcvnnnmou73wq8/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-internal/branch/master)
1+
# grunt-contrib-internal v1.2.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-internal.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-internal) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/vhmcvnnnmou73wq8/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-internal/branch/master)
22

33
> Internal tasks for managing the grunt-contrib projects
44
@@ -56,4 +56,4 @@ grunt.registerTask('default', ['jshint', 'contrib-core', 'contrib-ci:skipIfExist
5656

5757
Task submitted by ["Cowboy" Ben Alman](http://benalman.com/)
5858

59-
*This file was generated on Tue Apr 05 2016 18:17:54.*
59+
*This file was generated on Thu Apr 14 2016 09:23:15.*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-contrib-internal",
33
"description": "Internal tasks for managing the grunt-contrib projects",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"author": {
66
"name": "Grunt Team",
77
"url": "http://gruntjs.com/"

tasks/contrib-ci.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ module.exports = function(grunt) {
1818
var taskTravis = path.join(process.cwd(), '.travis.yml');
1919
var taskAppveyor = path.join(process.cwd(), 'appveyor.yml');
2020

21-
if (!skipIfExists) {
22-
if (!grunt.file.exists(taskTravis)) {
23-
grunt.file.write(taskTravis, travis);
24-
}
25-
26-
if (!grunt.file.exists(taskAppveyor)) {
27-
grunt.file.write(taskAppveyor, appveyor);
28-
}
29-
grunt.log.ok('Normalized .travis.yml and appveyor.yml for grunt-contrib.');
21+
if (!skipIfExists || !grunt.file.exists(taskTravis)) {
22+
grunt.file.write(taskTravis, travis);
23+
}
24+
if (!skipIfExists || !grunt.file.exists(taskAppveyor)) {
25+
grunt.file.write(taskAppveyor, appveyor);
3026
}
3127

28+
grunt.log.ok('Normalized .travis.yml and appveyor.yml for grunt-contrib.');
29+
3230
});
3331
};

0 commit comments

Comments
 (0)