Skip to content

Commit 2e3bd50

Browse files
committed
add travis.yml
1 parent 0d76122 commit 2e3bd50

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.travis.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
8+
install:
9+
- sudo apt-get -qq update
10+
- sudo apt-get -qq install cmake libssh2-1-dev openssh-client openssh-server
11+
12+
script:
13+
- script/cibuild.sh
14+
15+
notifications:
16+
irc:
17+
channels:
18+
- irc.freenode.net#php-git
19+
on_success: change
20+
on_failure: always
21+
use_notice: true
22+
skip_join: true
23+
slack:
24+
on_success: always
25+
on_failure: always
26+
secure: KH9+7GLccFrGWe+E6RhSqHxh+w5DIdsVxn41Iqb2C8rfm5rrnK0KVDTWJXk2BDHc2B1ab28o6m/Vcd8C/lgURd7yx4QfUASQRrHEn4FfpsB7UgES+/aENb59ma3DVz5PqVDUSVSvABU9OCqEkLmN/9w2mL/q3rW4slUq4LzMweI=

script/cibuild.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export NO_INTERACTION=1
2+
export TESTS="--show-diff -q"
3+
4+
mkdir $TRAVIS_BUILD_DIR/libgit2/build
5+
cd $TRAVIS_BUILD_DIR/libgit2/build
6+
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DBUILD_CLAR=OFF -DCMAKE_C_FLAGS=-fPIC ..
7+
cmake --build .
8+
cd $TRAVIS_BUILD_DIR
9+
10+
phpize
11+
./configure
12+
make
13+
make test

0 commit comments

Comments
 (0)