Skip to content

Commit 09acda2

Browse files
committed
fix travis build
1 parent fda6a2a commit 09acda2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.travis.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ sudo: required
22
language: php
33
php:
44
- 7.0
5-
before_install: ./libgit2_build.sh && phpize
6-
install: ./configure --prefix=/usr && sudo make install
5+
before_install:
6+
- sudo apt-get update -qq
7+
- sudo apt-get install -qq libhttp-parser-dev libssh2-1-dev
8+
- ./libgit2_build.sh
9+
- phpize
10+
install:
11+
- ./configure --prefix=/usr
12+
- sudo make install
713
before_script: echo 'extension = git2.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
814
script: ./test.sh

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status - master](https://travis-ci.org/MagicalTux/php-git2.png?branch=master)](https://travis-ci.org/MagicalTux/php-git2)
2+
13
# libgit2 bindings for PHP 7
24

35
Because I need libgit2 and the implementation at https://github.com/libgit2/php-git doesn't appear maintained anymore (and no PHP7 implementation currently exists) I decided to put one together quickly with simple classes close to the original libgit2 syntax.

0 commit comments

Comments
 (0)