Skip to content

Commit 3ea1bd6

Browse files
committed
Fix travis.
1 parent 4b66d9f commit 3ea1bd6

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ go:
66
- 1.2
77
- 1.3
88
- 1.4
9+
- 1.5
910
- tip
1011

1112
matrix:
@@ -17,9 +18,10 @@ before_install:
1718

1819
install:
1920
- travis_retry sudo apt-get install memcached
20-
- git submodule init
21-
- git submodule update
2221
- memcached -h | head -1
2322

24-
script: make && make test-full
23+
script:
24+
- make deps
25+
- make
26+
- make test-full
2527

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ build: *.go
1111
@$(GO) build
1212

1313
deps:
14-
git submodule init
15-
git submodule update
14+
git submodule update --init --recursive
1615

1716
# Yes, this is a hack, but Go's packing is also just stupid.
18-
work-tree: src
19-
ln -s vendor src
17+
work-tree:
18+
@if [ ! -e src ]; then \
19+
ln -s vendor src; \
20+
fi
2021

2122
test: build work-tree
2223
@memcached -p 11289 & echo $$! > test.pids

0 commit comments

Comments
 (0)