You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
chore: configure travis for windows builds
This commit is contained in:
30
.travis.yml
30
.travis.yml
@@ -1,6 +1,10 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
|
os:
|
||||||
|
- windows
|
||||||
|
- linux
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CXX=g++-4.8 TRAVIS=true
|
- CXX=g++-4.8 TRAVIS=true
|
||||||
|
|
||||||
@@ -11,6 +15,7 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- g++-4.8
|
- g++-4.8
|
||||||
|
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- "6"
|
- "6"
|
||||||
- "8"
|
- "8"
|
||||||
@@ -18,13 +23,30 @@ node_js:
|
|||||||
- "13"
|
- "13"
|
||||||
|
|
||||||
before_install:
|
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
|
case $TRAVIS_OS_NAME in
|
||||||
- if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
|
linux)
|
||||||
- export PATH="$PATH:$(pwd)/stunnel-5.54/src"
|
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
|
||||||
|
C:\ProgramData\chocolatey\lib\redis-64\tools\redis-server.exe --service-install
|
||||||
|
C:\ProgramData\chocolatey\lib\redis-64\tools\redis-server.exe --service-start
|
||||||
|
'@ECHO Redis Started'
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
- $HOME/AppData/Local/Temp/chocolatey
|
||||||
- "$TRAVIS_BUILD_DIR/stunnel-5.54"
|
- "$TRAVIS_BUILD_DIR/stunnel-5.54"
|
||||||
|
|
||||||
after_success: npm run coveralls
|
after_success: npm run coveralls
|
||||||
|
Reference in New Issue
Block a user