Explorar o código

Merge pull request #6098 from sebavan/master

test
sebavan %!s(int64=6) %!d(string=hai) anos
pai
achega
03ef714bcc
Modificáronse 2 ficheiros con 23 adicións e 16 borrados
  1. 17 14
      Tools/Gulp/tasks/gulpTasks-whatsNew.js
  2. 6 2
      dist/preview release/what's new.md

+ 17 - 14
Tools/Gulp/tasks/gulpTasks-whatsNew.js

@@ -6,22 +6,25 @@ var fs = require("fs");
  * Tests the whats new file to ensure changes have been made in the PR.
  */
 gulp.task("tests-whatsnew", function(done) {
-    // Only checks on Travis
-    if (!process.env.TRAVIS) {
-        done();
-        return;
-    }
+    // Check status on azure
+    if (!process.env["AZURE_PULLREQUESTID"]) {
+        // Only checks on Travis
+        if (!process.env.TRAVIS) {
+            done();
+            return;
+        }
 
-    // Only checks on Pull Requests
-    if (process.env.TRAVIS_PULL_REQUEST == "false") {
-        done();
-        return;
-    }
+        // Only checks on Pull Requests
+        if (process.env.TRAVIS_PULL_REQUEST == "false") {
+            done();
+            return;
+        }
 
-    // Do not check deploy
-    if (process.env.TRAVIS_BRANCH == "preview") {
-        done();
-        return;
+        // Do not check deploy
+        if (process.env.TRAVIS_BRANCH == "preview") {
+            done();
+            return;
+        }
     }
 
     // Compare what's new with the current one in the preview release folder.

+ 6 - 2
dist/preview release/what's new.md

@@ -157,8 +157,6 @@
 
 - Added support for exporting `KHR_lights_punctual`
 
-### Viewer
-
 ### Post-Processes Library
 - Added the [Ocean](https://doc.babylonjs.com/extensions/oceanpostprocess) post-process ([julien-moreau](https://github.com/julien-moreau))
 
@@ -169,6 +167,12 @@
 - Fixed `TerrainMaterial.isReadyForSubMesh` to remove WebGL warnings ([julien-moreau](https://github.com/julien-moreau))
 - Fixed `MixMaterial.isReadyForSubMesh` to remove WebGL warnings ([dad72](https://github.com/dad72))
 
+### Infrastructure
+
+- Adding Azure DevOps Build ([Sebavan](https://github.com/Sebavan))
+
+### Viewer
+
 ## Bug fixes
 - Fixed ArcRotateCamera.setTarget (position was sometimes wrong) ([Deltakosh](https://github.com/deltakosh))
 - Fixed TransformNode.setDirection (orientation was wrong) ([Deltakosh](https://github.com/deltakosh))