Skip to content

Commit

Permalink
chore: configure travis for windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar committed Feb 9, 2020
1 parent 8f72799 commit 33363e6
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: node_js
sudo: required

os:
- windows
- linux

env:
- CXX=g++-4.8 TRAVIS=true

Expand All @@ -11,20 +15,38 @@ addons:
packages:
- g++-4.8


node_js:
- "6"
- "8"
- "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
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
Expand Down

0 comments on commit 33363e6

Please sign in to comment.