Skip to content

Commit 37b15d5

Browse files
committed
Updated .travis.yml;
1 parent 9d774eb commit 37b15d5

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,17 @@ before_install:
3838
- if [[ "$FB" == "2.5" ]]; then sudo sed /ENABLE_FIREBIRD_SERVER=/s/no/yes/ -i $FIREBIRD_SERVER_CONFIG; fi
3939
- if [[ "$FB" == "2.5" ]]; then cat $FIREBIRD_SERVER_CONFIG | grep ENABLE_FIREBIRD_SERVER; fi
4040
- sudo service firebird$FB-super start
41-
- export URL_SVN_EXT=https://github.com/php/php-src/branches/PHP-$(phpenv version-name)/ext/pdo_firebird
42-
- if [[ $(phpenv version-name) == "nightly" ]]; then export URL_SVN_EXT="https://github.com/php/php-src/trunk/ext/pdo_firebird"; fi
43-
- travis_retry svn export $URL_SVN_EXT pdo_firebird -q
44-
- (cd pdo_firebird/; phpize && ./configure && make && sudo make install)
41+
42+
# initialize databases
43+
- echo "CREATE DATABASE 'localhost:/tmp/TEST.FDB' USER 'SYSDBA' PASSWORD 'masterkey' PAGE_SIZE 16384 DEFAULT CHARACTER SET UTF8;" > /tmp/create_test.sql
44+
- isql-fb -i /tmp/create_test.sql
45+
- cat /tmp/create_test.sql
46+
47+
#build pdo_firebird
48+
- export BRANCH=PHP-$(phpenv version-name)
49+
- if [[ $(phpenv version-name) == "nightly" ]]; then export BRANCH=master; fi
50+
- travis_retry git clone --depth=1 -b ${BRANCH} --single-branch https://github.com/php/php-src.git
51+
- (cd php-src/ext/pdo_firebird/; phpize && ./configure && make && sudo make install)
4552

4653
install:
4754
- echo "extension=pdo_firebird.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
@@ -55,10 +62,6 @@ install:
5562
before_script:
5663
# show some versions and env information
5764
- isql-fb -z -q -i /dev/null
58-
# initialize databases
59-
- echo "CREATE DATABASE 'localhost:/tmp/TEST.FDB' USER 'SYSDBA' PASSWORD 'masterkey' PAGE_SIZE 16384 DEFAULT CHARACTER SET UTF8;" > /tmp/create_test.sql
60-
- isql-fb -i /tmp/create_test.sql
61-
- cat /tmp/create_test.sql
6265

6366
script:
6467
- phpunit

0 commit comments

Comments
 (0)