Browse Source

Fix Travis CI.

Ben Johnson 12 years ago
parent
commit
355bd6df9b
2 changed files with 7 additions and 3 deletions
  1. 1 1
      .travis.yml
  2. 6 2
      test.sh

+ 1 - 1
.travis.yml

@@ -1,5 +1,5 @@
 language: go
-go: 1.1
+go: 1.2
 
 install:
  - echo "Skip install"

+ 6 - 2
test.sh

@@ -5,6 +5,10 @@ if [ -z "$PKG" ]; then
     PKG="./store ./server ./server/v2/tests ./mod/lock/v2/tests"
 fi
 
+if [ -z "$RUN" ]; then
+    RUN="."
+fi
+
 # Get GOPATH, etc from build
 . ./build
 
@@ -15,9 +19,9 @@ export GOPATH="${PWD}"
 for i in $PKG
 do
     go test -i $i
-    go test -v $i
+    go test -v -test.run=$RUN $i
 done
 
 # Functional tests
 go test -i ./tests/functional
-ETCD_BIN_PATH=$(pwd)/etcd go test -v ./tests/functional
+ETCD_BIN_PATH=$(pwd)/etcd go test -v  -test.run=$RUN ./tests/functional