File tree 2 files changed +9
-7
lines changed 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ before_install:
34
34
35
35
cache :
36
36
directories :
37
+ - " $HOME/AppData/Local/Temp/chocolatey"
37
38
- " $TRAVIS_BUILD_DIR/stunnel-5.54"
38
39
39
40
before_script :
@@ -42,12 +43,5 @@ before_script:
42
43
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
43
44
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
44
45
fi
45
- after_script :
46
- - |-
47
- case $TRAVIS_OS_NAME in
48
- windows)
49
- redis-server --service-stop
50
- ;;
51
- esac
52
46
53
47
after_success : npm run coveralls
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ var fork = require('child_process').fork;
11
11
var redis = config . redis ;
12
12
var client ;
13
13
14
+ after ( function ( done ) {
15
+ if ( process . platform !== 'win32' || ! process . env . CI ) {
16
+ return done ( ) ;
17
+ }
18
+ require ( 'cross-spawn' ) . sync ( 'redis-server' , [ '--service-stop' ] , { } ) ;
19
+ done ( ) ;
20
+ } ) ;
21
+
14
22
describe ( 'The node_redis client' , function ( ) {
15
23
16
24
describe ( "The 'add_command' method" , function ( ) {
You can’t perform that action at this time.
0 commit comments