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 +31
-15
lines changed Expand file tree Collapse file tree 3 files changed +31
-15
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" ,
24
25
"devDependencies" : {
25
26
"mocha" : " ^3.1.2" ,
26
- "random-seed" : " ^0.3.0"
27
+ "random-seed" : " ^0.3.0" ,
28
+ "segfault-handler" : " ^1.0.0"
27
29
},
28
30
"dependencies" : {
29
31
"autogypi" : " ^0.2.2" ,
Original file line number Diff line number Diff line change 1
1
require ( 'segfault-handler' ) . registerHandler ( )
2
2
3
3
const assert = require ( 'assert' )
4
- const NativeBufferOffsetIndex = require ( '../src/entry-node' ) ;
5
- const AsmjsBufferOffsetIndex = require ( '../src/entry-browser' ) ;
6
4
const ReferenceBufferOffsetIndex = require ( './reference-buffer-offset-index' ) ;
7
5
8
6
const randomSeed = require ( 'random-seed' ) ;
9
7
const seed = 42 ; //randomSeed.create()(Number.MAX_SAFE_INTEGER);
10
8
11
- [ {
9
+ let passes = [ ] ;
10
+
11
+ passes . push ( {
12
12
13
13
name : 'native' ,
14
- Implementation : NativeBufferOffsetIndex
14
+ Implementation : require ( '../src/entry-node' )
15
+
16
+ } ) ;
15
17
16
- } , {
18
+ if ( ! process . env . TEST_ASMJS || process . env . TEST_ASMJS !== '0' ) passes . push ( {
17
19
18
20
name : 'asmjs' ,
19
- Implementation : AsmjsBufferOffsetIndex
21
+ Implementation : require ( '../src/entry-browser' )
22
+
23
+ } ) ;
20
24
21
- } ] . forEach ( ( { name, Implementation } ) => {
25
+ passes . forEach ( ( { name, Implementation } ) => {
22
26
23
27
describe ( 'BufferOffsetIndex (' + name + ')' , ( ) => {
24
28
You can’t perform that action at this time.
0 commit comments