From 33363e6a07472704207baba41175e9f8ca68c247 Mon Sep 17 00:00:00 2001 From: Salakar Date: Sun, 9 Feb 2020 13:11:47 +0000 Subject: [PATCH] chore: configure travis for windows builds --- .travis.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7ff40c58a5..473d621827 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,10 @@ language: node_js sudo: required +os: + - windows + - linux + env: - CXX=g++-4.8 TRAVIS=true @@ -11,6 +15,7 @@ addons: packages: - g++-4.8 + node_js: - "6" - "8" @@ -18,13 +23,30 @@ node_js: - "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 + 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: directories: + - $HOME/AppData/Local/Temp/chocolatey - "$TRAVIS_BUILD_DIR/stunnel-5.54" after_success: npm run coveralls