Преглед изворни кода

Merge pull request #13726 from dbkaplun/travis

Travis CI integration
Mr.doob пре 7 година
родитељ
комит
40927735d6
4 измењених фајлова са 8 додато и 1 уклоњено
  1. 1 0
      .gitignore
  2. 5 0
      .travis.yml
  3. 1 0
      package.json
  4. 1 1
      src/math/Math.js

+ 1 - 0
.gitignore

@@ -7,3 +7,4 @@ node_modules
 npm-debug.log
 .jshintrc
 .vs/
+test/unit/three.*.unit.js

+ 5 - 0
.travis.yml

@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+  - "8.9.4"
+script:
+  - npm run travis

+ 1 - 0
package.json

@@ -36,6 +36,7 @@
     "start": "npm run dev",
     "lint": "eslint src",
     "test": "npm run build-test && qunit test/unit/three.source.unit.js",
+    "travis": "npm run lint && npm test",
     "editor": "electron ./editor/main.js"
   },
   "keywords": [

+ 1 - 1
src/math/Math.js

@@ -31,7 +31,7 @@ var _Math = {
 				lut[ d2 & 0x3f | 0x80 ] + lut[ d2 >> 8 & 0xff ] + '-' + lut[ d2 >> 16 & 0xff ] + lut[ d2 >> 24 & 0xff ] +
 				lut[ d3 & 0xff ] + lut[ d3 >> 8 & 0xff ] + lut[ d3 >> 16 & 0xff ] + lut[ d3 >> 24 & 0xff ];
 
-			// .toUpperCase() here flattens concatenated strings to save heap memory space. 
+			// .toUpperCase() here flattens concatenated strings to save heap memory space.
 			return uuid.toUpperCase();
 
 		};