This repository was archived by the owner on Aug 24, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 1
- sudo : false
1
+ sudo : required
2
2
3
3
git :
4
4
depth : 10
@@ -7,12 +7,22 @@ language: node_js
7
7
8
8
node_js : 6
9
9
10
- env :
11
- - CC=clang CXX=clang++ npm_config_clang=1
12
-
13
- script : npm test
10
+ script : npm run test:noasmjs
14
11
15
12
notifications :
16
13
email :
17
14
on_success : never
18
15
on_failure : change
16
+
17
+ env :
18
+ - CXX=clang++-3.8
19
+
20
+ addons :
21
+ apt :
22
+ sources :
23
+ - ubuntu-toolchain-r-test
24
+ - llvm-toolchain-precise-3.8
25
+ packages :
26
+ - gcc-5
27
+ - g++-5
28
+ - clang-3.8
Original file line number Diff line number Diff line change 15
15
"build:browser" : " npm run node-gyp configure build --asmjs=1" ,
16
16
"test" : " npm run build:all && npm run test:nobuild" ,
17
17
"test:nobuild" : " mocha --full-trace test/**/*.test.js" ,
18
+ "test:noasmjs" : " npm run build:native && TEST_ASMJS=0 mocha --full-trace test/**/*.test.js" ,
18
19
"install" : " npm run autogypi && npm run build:native && npm run install-browser" ,
19
- "install-browser" : " test -e build/Release/nbind.js || which em++ 2>&1 > /dev/null && npm run build:browser" ,
20
- "prepublish" : " npm run build:browser"
20
+ "install-browser" : " test -e build/Release/nbind.js || ! command -v emsdk 2>&1 > /dev/null || npm run build:browser" ,
21
+ "prepublish" : " [ \" $CI \" = true ] || npm run build:browser"
21
22
},
22
23
"author" : " " ,
23
24
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -8,17 +8,23 @@ const ReferenceBufferOffsetIndex = require('./reference-buffer-offset-index');
8
8
const randomSeed = require ( 'random-seed' ) ;
9
9
const seed = 42 ; //randomSeed.create()(Number.MAX_SAFE_INTEGER);
10
10
11
- [ {
11
+ let passes = [ ] ;
12
+
13
+ passes . push ( {
12
14
13
15
name : 'native' ,
14
16
Implementation : NativeBufferOffsetIndex
15
17
16
- } , {
18
+ } ) ;
19
+
20
+ if ( ! process . env . TEST_ASMJS || process . env . TEST_ASMJS !== '0' ) passes . push ( {
17
21
18
22
name : 'asmjs' ,
19
23
Implementation : AsmjsBufferOffsetIndex
20
24
21
- } ] . forEach ( ( { name, Implementation } ) => {
25
+ } ) ;
26
+
27
+ passes . forEach ( ( { name, Implementation } ) => {
22
28
23
29
describe ( 'BufferOffsetIndex (' + name + ')' , ( ) => {
24
30
You can’t perform that action at this time.
0 commit comments