Skip to content

Commit

Permalink
chore: try workaround travis windows hanging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar committed Feb 9, 2020
1 parent a7149e3 commit 9f01198
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ before_install:
cache:
directories:
- "$HOME/AppData/Local/Temp/chocolatey"
- "$TRAVIS_BUILD_DIR/stunnel-5.54"

before_script:
Expand All @@ -42,12 +43,5 @@ before_script:
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
after_script:
- |-
case $TRAVIS_OS_NAME in
windows)
redis-server --service-stop
;;
esac

after_success: npm run coveralls
8 changes: 8 additions & 0 deletions test/node_redis.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ var fork = require('child_process').fork;
var redis = config.redis;
var client;

after(function (done) {
if (process.platform !== 'win32' || !process.env.CI) {
return done();
}
require('cross-spawn').sync('redis-server', ['--service-stop'], {});
done();
});

describe('The node_redis client', function () {

describe("The 'add_command' method", function () {
Expand Down

0 comments on commit 9f01198

Please sign in to comment.