Skip to content

Commit 33363e6

Browse files
committed
chore: configure travis for windows builds
1 parent 8f72799 commit 33363e6

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.travis.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
language: node_js
22
sudo: required
33

4+
os:
5+
- windows
6+
- linux
7+
48
env:
59
- CXX=g++-4.8 TRAVIS=true
610

@@ -11,20 +15,38 @@ addons:
1115
packages:
1216
- g++-4.8
1317

18+
1419
node_js:
1520
- "6"
1621
- "8"
1722
- "12"
1823
- "13"
1924

2025
before_install:
21-
- 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
22-
- if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi
23-
- if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
24-
- export PATH="$PATH:$(pwd)/stunnel-5.54/src"
26+
- |-
27+
case $TRAVIS_OS_NAME in
28+
linux)
29+
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
30+
if [[ ! -f ./stunnel-5.54/configure ]]; then tar -xzf stunnel.tar.gz; fi
31+
if [[ ! -f ./stunnel-5.54/src/stunnel ]]; then cd ./stunnel-5.54; ./configure; make; cd ..; fi
32+
export PATH="$PATH:$(pwd)/stunnel-5.54/src"
33+
;;
34+
esac
35+
- |-
36+
case $TRAVIS_OS_NAME in
37+
windows)
38+
choco install redis-64
39+
C:\ProgramData\chocolatey\lib\redis-64\tools\redis-server.exe --service-install
40+
C:\ProgramData\chocolatey\lib\redis-64\tools\redis-server.exe --service-start
41+
'@ECHO Redis Started'
42+
node --version
43+
npm --version
44+
;;
45+
esac
2546
2647
cache:
2748
directories:
49+
- $HOME/AppData/Local/Temp/chocolatey
2850
- "$TRAVIS_BUILD_DIR/stunnel-5.54"
2951

3052
after_success: npm run coveralls

0 commit comments

Comments
 (0)