Skip to content

Commit f769c89

Browse files
committed
Updated .travis.yml;
1 parent 1c8268f commit f769c89

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

.travis.yml

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
language: php
2-
3-
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- nightly
9-
10-
env:
11-
- FB=2.1
12-
- FB=2.5
13-
14-
# run build against hhvm but allow them to fail
15-
# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
16-
matrix:
17-
fast_finish: true
18-
allow_failures:
19-
- php: 7.0
20-
- php: nightly
21-
22-
# faster builds on new travis setup not using sudo
23-
sudo: true
24-
25-
# cache vendor dirs
26-
cache:
27-
directories:
28-
- vendor
29-
- $HOME/.composer/cache
30-
31-
before_install:
32-
- sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
33-
- sudo apt-get update -qq
34-
- sudo apt-get install -qq firebird$FB-super firebird$FB-dev expect
35-
- if [[ "$FB" == "2.1" ]]; then export DEBIAN_FRONTEND=readline; fi
36-
- if [[ "$FB" == "2.1" ]]; then expect tests/ci/travis/dpkg_firebird2.1.exp; fi
37-
- if [[ "$FB" == "2.1" ]]; then export DEBIAN_FRONTEND=dialog; fi
38-
- if [[ "$FB" == "2.5" ]]; then export FIREBIRD_SERVER_CONFIG=/etc/default/firebird$FB; fi
39-
- if [[ "$FB" == "2.5" ]]; then sudo sed /ENABLE_FIREBIRD_SERVER=/s/no/yes/ -i $FIREBIRD_SERVER_CONFIG; fi
40-
- if [[ "$FB" == "2.5" ]]; then cat $FIREBIRD_SERVER_CONFIG | grep ENABLE_FIREBIRD_SERVER; fi
41-
- sudo service firebird$FB-super start
42-
- export URL_SVN_EXT=https://github.com/php/php-src/branches/PHP-$(phpenv version-name)/ext
43-
- if [[ $(phpenv version-name) == "7.0" ]]; then export URL_SVN_EXT="https://github.com/php/php-src/branches/PHP-7.0.0/ext"; fi
44-
- if [[ $(phpenv version-name) == "nightly" ]]; then export URL_SVN_EXT="https://github.com/php/php-src/trunk/ext"; fi
45-
- svn checkout $URL_SVN_EXT php-ext -q
46-
- (cd php-ext/pdo_firebird/; phpize && ./configure && make && sudo make install)
47-
48-
install:
49-
- echo "extension=pdo_firebird.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
50-
- travis_retry composer self-update && composer --version
51-
- travis_retry composer global require "fxp/composer-asset-plugin:~1.0.0" --prefer-source --no-interaction
52-
- export PATH="$HOME/.composer/vendor/bin:$PATH"
53-
- travis_retry composer install --prefer-source --no-interaction
54-
55-
before_script:
56-
# show some versions and env information
57-
- 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
62-
63-
script:
64-
- phpunit
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- nightly
9+
10+
env:
11+
- FB=2.1
12+
- FB=2.5
13+
14+
# run build against hhvm but allow them to fail
15+
# http://docs.travis-ci.com/user/build-configuration/#Rows-That-are-Allowed-To-Fail
16+
matrix:
17+
fast_finish: true
18+
allow_failures:
19+
- php: 7.0
20+
- php: nightly
21+
22+
# faster builds on new travis setup not using sudo
23+
sudo: true
24+
25+
# cache vendor dirs
26+
cache:
27+
directories:
28+
- vendor
29+
- $HOME/.composer/cache
30+
31+
before_install:
32+
- sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
33+
- sudo apt-get update -qq
34+
- sudo apt-get install -qq firebird$FB-super firebird$FB-dev expect
35+
- if [[ "$FB" == "2.1" ]]; then export DEBIAN_FRONTEND=readline; fi
36+
- if [[ "$FB" == "2.1" ]]; then expect tests/ci/travis/dpkg_firebird2.1.exp; fi
37+
- if [[ "$FB" == "2.1" ]]; then export DEBIAN_FRONTEND=dialog; fi
38+
- if [[ "$FB" == "2.5" ]]; then export FIREBIRD_SERVER_CONFIG=/etc/default/firebird$FB; fi
39+
- if [[ "$FB" == "2.5" ]]; then sudo sed /ENABLE_FIREBIRD_SERVER=/s/no/yes/ -i $FIREBIRD_SERVER_CONFIG; fi
40+
- if [[ "$FB" == "2.5" ]]; then cat $FIREBIRD_SERVER_CONFIG | grep ENABLE_FIREBIRD_SERVER; fi
41+
- sudo service firebird$FB-super start
42+
- export URL_SVN_EXT=https://github.com/php/php-src/branches/PHP-$(phpenv version-name)/ext/pdo_firebird
43+
- if [[ $(phpenv version-name) == "7.0" ]]; then export URL_SVN_EXT="https://github.com/php/php-src/branches/PHP-7.0.0/ext/pdo_firebird"; fi
44+
- if [[ $(phpenv version-name) == "nightly" ]]; then export URL_SVN_EXT="https://github.com/php/php-src/trunk/ext/pdo_firebird"; fi
45+
- svn export $URL_SVN_EXT pdo_firebird -q
46+
- (cd pdo_firebird/; phpize && ./configure && make && sudo make install)
47+
48+
install:
49+
- echo "extension=pdo_firebird.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
50+
- travis_retry composer self-update && composer --version
51+
- travis_retry composer global require "fxp/composer-asset-plugin:~1.0.0" --prefer-source --no-interaction
52+
- export PATH="$HOME/.composer/vendor/bin:$PATH"
53+
- travis_retry composer install --prefer-source --no-interaction
54+
55+
before_script:
56+
# show some versions and env information
57+
- 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
62+
63+
script:
64+
- phpunit

0 commit comments

Comments
 (0)