File tree 4 files changed +41
-60
lines changed
4 files changed +41
-60
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
sudo : required
3
3
4
- env :
5
- - CXX=g++-4.8 TRAVIS=true
6
-
7
- addons :
8
- apt :
9
- sources :
10
- - ubuntu-toolchain-r-test
11
- packages :
12
- - g++-4.8
4
+ os :
5
+ - windows
6
+ - linux
13
7
14
8
node_js :
15
9
- " 6"
16
10
- " 8"
11
+ - " 10"
17
12
- " 12"
18
13
- " 13"
19
14
20
15
before_install :
21
- - if [[ ! -f stunnel.tar.gz ]]; then wget -O stunnel.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.54.tar.gz; fi
22
- - if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi
23
- - if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
24
- - export PATH="$PATH:$(pwd)/stunnel-5.54/src"
16
+ - |-
17
+ case $TRAVIS_OS_NAME in
18
+ linux)
19
+ if [[ ! -f stunnel.tar.gz ]]; then wget -O stunnel.tar.gz ftp://ftp.stunnel.org/stunnel/archive/5.x/stunnel-5.54.tar.gz; fi
20
+ if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi
21
+ if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
22
+ export PATH="$PATH:$(pwd)/stunnel-5.54/src"
23
+ ;;
24
+ esac
25
+ - |-
26
+ case $TRAVIS_OS_NAME in
27
+ windows)
28
+ choco install redis-64
29
+ redis-server --service-install
30
+ redis-server --service-start
31
+ redis-cli config set stop-writes-on-bgsave-error no
32
+ ;;
33
+ esac
25
34
26
35
cache :
27
36
directories :
37
+ - " $HOME/AppData/Local/Temp/chocolatey"
28
38
- " $TRAVIS_BUILD_DIR/stunnel-5.54"
29
39
30
- after_success : npm run coveralls
31
40
before_script :
32
41
# Add an IPv6 config - see the corresponding Travis issue
33
42
# https://github.com/travis-ci/travis-ci/issues/8361
34
43
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
35
44
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
36
45
fi
46
+
47
+ after_success : npm run coveralls
Original file line number Diff line number Diff line change 12
12
<a href="https://www.npmjs.com/package/redis"><img src="https://img.shields.io/npm/dm/redis.svg?style=flat-square" alt="NPM downloads"></a>
13
13
<a href="https://www.npmjs.com/package/redis"><img src="https://img.shields.io/npm/v/redis.svg?style=flat-square" alt="NPM version"></a>
14
14
<a href="https://travis-ci.org/NodeRedis/node-redis"><img src="https://travis-ci.org/NodeRedis/node-redis.svg?style=flat-square&branch=master" alt="Build Status" /></a>
15
- <a href="https://ci.appveyor.com/project/BridgeAR/node-redis/branch/master"><img src="https://img.shields.io/appveyor/ci/BridgeAR/node-redis/master.svg?style=flat-square&label=Windows%20Tests" alt="Windows Tests" /></a>
16
15
<a href="https://coveralls.io/r/NodeRedis/node-redis?branch="><img src="https://coveralls.io/repos/NodeRedis/node-redis/badge.svg?style=flat-square&branch=" alt="Coverage Status" /></a>
17
16
<a href="https://twitter.com/NodeRedis"><img src="https://img.shields.io/twitter/follow/NodeRedis.svg?style=flat-square&colorA=1da1f2&colorB=&label=Follow%20on%20Twitter" alt="Follow on Twitter"></a>
18
17
</p >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,6 +11,22 @@ var fork = require('child_process').fork;
11
11
var redis = config . redis ;
12
12
var client ;
13
13
14
+ // Currently Travis Windows builds hang after completing if any processes are still running,
15
+ // we shutdown redis-server after all tests complete (can't do this in a
16
+ // `after_script` Travis hook as it hangs before the `after` life cycles)
17
+ // to workaround the issue.
18
+ //
19
+ // See: https://github.com/travis-ci/travis-ci/issues/8082
20
+ after ( function ( done ) {
21
+ if ( process . platform !== 'win32' || ! process . env . CI ) {
22
+ return done ( ) ;
23
+ }
24
+ process . nextTick ( function ( ) {
25
+ require ( 'cross-spawn' ) . sync ( 'redis-server' , [ '--service-stop' ] , { } ) ;
26
+ done ( ) ;
27
+ } ) ;
28
+ } ) ;
29
+
14
30
describe ( 'The node_redis client' , function ( ) {
15
31
16
32
describe ( "The 'add_command' method" , function ( ) {
You can’t perform that action at this time.
0 commit comments