Skip to content

Commit 832da6c

Browse files
committed
add correct conditions for deploy, add encoding
1 parent 8dacdc5 commit 832da6c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ jobs:
7070
bucket: ng-i-1121e.appspot.com
7171
local-dir: upload
7272
skip_cleanup: true
73+
detect_encoding: true # detects gzip compression and sets the correct metadata in gcs
7374
on:
7475
repo: angular/angular.js
75-
branch: chore-firebase
76+
condition: "$TRAVIS_TAG != false || ($TRAVIS_PR = false && $TRAVIS_BRANCH = 'master') || $TRAVIS_BRANCH = 'chore-firebase'"
7677

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ module.exports = function(grunt) {
6464
NG_VERSION.cdn = versionInfo.cdnVersion;
6565
var dist = 'angular-' + NG_VERSION.full;
6666

67-
var codeVersion = NG_VERSION.isSnapshot ? 'snapshot' : NG_VERSION.full;
67+
var deployVersion = NG_VERSION.isSnapshot ? 'snapshot' : NG_VERSION.full;
6868

6969
if (versionInfo.cdnVersion == null) {
7070
throw new Error('Unable to read CDN version, are you offline or has the CDN not been properly pushed?\n' +
@@ -334,7 +334,7 @@ module.exports = function(grunt) {
334334
src: ['**'],
335335
cwd: 'build',
336336
expand: true,
337-
dest: 'upload/' + codeVersion + '/'
337+
dest: 'upload/' + deployVersion + '/'
338338
}
339339
},
340340

@@ -385,7 +385,7 @@ module.exports = function(grunt) {
385385

386386
grunt.registerTask('minify', ['bower', 'clean', 'build', 'minall']);
387387
grunt.registerTask('webserver', ['connect:devserver']);
388-
grunt.registerTask('package', ['bower', 'validate-angular-files', 'clean', 'buildall', 'minall', 'collect-errors', 'write', 'docs', 'copy', 'compress']);
388+
grunt.registerTask('package', ['bower', 'validate-angular-files', 'clean', 'buildall', 'minall', 'collect-errors', 'write', 'docs', 'copy', 'compress:build']);
389389
grunt.registerTask('ci-checks', ['ddescribe-iit', 'merge-conflict', 'eslint']);
390390
grunt.registerTask('default', ['package']);
391391
};

0 commit comments

Comments
 (0)