File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ matrix:
24
24
before_install :
25
25
- sudo add-apt-repository ppa:sivakov512/kcov -y
26
26
- sudo apt-get update -q
27
- - sudo apt-get install kcov
27
+ - sudo apt-get install kcov nodejs
28
28
29
29
script : |
30
30
cargo install cargo-kcov -f
31
- cargo kcov -v
31
+ node keepalive.js cargo kcov -v
32
32
bash <(curl -s https://codecov.io/bash)
33
33
34
34
- language : node_js
Original file line number Diff line number Diff line change
1
+ const { spawn } = require ( 'child_process' ) ;
2
+
3
+ const toRun = process . argv . slice ( 2 ) ;
4
+ if ( toRun . length ) {
5
+ const cmd = toRun [ 0 ] ;
6
+ const args = toRun . slice ( 1 ) ;
7
+
8
+ const proc = spawn ( cmd , args ) ;
9
+
10
+ proc . stdout . on ( 'data' , ( data ) => process . stdout . write ( data ) ) ;
11
+ proc . stderr . on ( 'data' , ( data ) => process . stderr . write ( data ) ) ;
12
+ proc . on ( 'close' , ( code ) => process . exit ( code ) ) ;
13
+
14
+ setInterval ( ( ) => console . log ( 'Still running...' ) , 30000 ) ;
15
+ }
You can’t perform that action at this time.
0 commit comments