-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1496 from NodeRedis/@salakar/travis-windows
fix: windows CI
- Loading branch information
Showing
4 changed files
with
41 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,47 @@ | ||
language: node_js | ||
sudo: required | ||
|
||
env: | ||
- CXX=g++-4.8 TRAVIS=true | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
os: | ||
- windows | ||
- linux | ||
|
||
node_js: | ||
- "6" | ||
- "8" | ||
- "10" | ||
- "12" | ||
- "13" | ||
|
||
before_install: | ||
- 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 | ||
- if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi | ||
- if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi | ||
- export PATH="$PATH:$(pwd)/stunnel-5.54/src" | ||
- |- | ||
case $TRAVIS_OS_NAME in | ||
linux) | ||
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 | ||
if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi | ||
if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi | ||
export PATH="$PATH:$(pwd)/stunnel-5.54/src" | ||
;; | ||
esac | ||
- |- | ||
case $TRAVIS_OS_NAME in | ||
windows) | ||
choco install redis-64 | ||
redis-server --service-install | ||
redis-server --service-start | ||
redis-cli config set stop-writes-on-bgsave-error no | ||
;; | ||
esac | ||
cache: | ||
directories: | ||
- "$HOME/AppData/Local/Temp/chocolatey" | ||
- "$TRAVIS_BUILD_DIR/stunnel-5.54" | ||
|
||
after_success: npm run coveralls | ||
before_script: | ||
# Add an IPv6 config - see the corresponding Travis issue | ||
# https://github.com/travis-ci/travis-ci/issues/8361 | ||
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then | ||
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'; | ||
fi | ||
|
||
after_success: npm run coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters