travis: build statically
diff --git a/.travis.yml b/.travis.yml
index d9130bc..f3b8b46 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,15 +1,13 @@
 language: go
 
-sudo: required
-
-install: ./script/install-libgit2.sh
-
 go:
   - 1.5
   - 1.6
   - 1.7
   - tip
 
+script: make test-static
+
 matrix:
   allow_failures:
     - go: tip
diff --git a/Makefile b/Makefile
index 9be90e1..b2399f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
 default: test
 
-build-libgit2:
-	./script/build-libgit2-static.sh
-
 test: build-libgit2
 	go run script/check-MakeGitError-thread-lock.go
 	go test ./...