Skip to content
This repository was archived by the owner on Apr 9, 2020. It is now read-only.

Commit 5052b3e

Browse files
committed
Fix Travis-CI test.
1 parent 4eb3db9 commit 5052b3e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
language: go
22
go:
3-
- 1.1
3+
- 1.3
44
install:
5-
- go get github.com/cyfdecyf/leakybuf
65
- go get code.google.com/p/go.crypto/blowfish
76
- go get code.google.com/p/go.crypto/cast5
8-
- pushd $TRAVIS_BUILD_DIR
97
- go install ./cmd/shadowsocks-local
108
- go install ./cmd/shadowsocks-server
11-
- popd
129
script:
13-
- pushd $TRAVIS_BUILD_DIR
1410
- PATH=$PATH:$HOME/gopath/bin bash -x ./script/test.sh
15-
- popd

script/test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,18 @@ test_shadowsocks() {
6161

6262
# Wait server and client finish startup.
6363
sleeptime=0.1
64-
if echo $SERVER $LOCAL | grep 'py'; then
64+
if [ -n "$TRAVIS" ]; then
65+
# On Travis we need to wait a little longer.
66+
sleeptime=1
67+
elif echo $SERVER $LOCAL | grep 'py'; then
6568
# The python version is slow to start.
6669
if [[ $method == "table" ]]; then
6770
sleeptime=2
6871
else
6972
sleeptime=0.5
7073
fi
7174
fi
75+
echo $sleeptime
7276
sleep $sleeptime
7377

7478
for i in {1..3}; do

0 commit comments

Comments
 (0)