File tree Expand file tree Collapse file tree 4 files changed +29
-13
lines changed Expand file tree Collapse file tree 4 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
+
2
3
php :
3
4
- 5.3
4
5
- 5.4
5
6
- 5.5
6
7
- 5.6
7
8
- hhvm
9
+
8
10
matrix :
9
11
allow_failures :
10
12
- php : 5.6
11
13
- php : hhvm
14
+
12
15
before_script :
13
- - if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
14
- - if [[ "$TRAVIS_PHP_VERSION" == "5.5" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
15
- - if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
16
- - if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then sh -c "cd tests && hhvm --mode server --port 8000 --config PHPCurlClass/server.hdf &"; fi
16
+ - bash tests/before_script.sh
17
+
17
18
script :
18
- - find . -type "f" -iname "*.php" | xargs -L "1" php -l
19
- - if [[ "$TRAVIS_PHP_VERSION" != "5.3" ]]; then sh -c "cd tests && phpunit --configuration phpunit.xml"; fi
19
+ - bash tests/script.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ if [[ " ${TRAVIS_PHP_VERSION} " == " 5.4" ]]; then
2
+ php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &
3
+ elif [[ " ${TRAVIS_PHP_VERSION} " == " 5.5" ]]; then
4
+ php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &
5
+ elif [[ " ${TRAVIS_PHP_VERSION} " == " 5.6" ]]; then
6
+ php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &
7
+ elif [[ " ${TRAVIS_PHP_VERSION} " == " hhvm" ]]; then
8
+ sudo add-apt-repository -y ppa:nginx/stable
9
+ sudo apt-get update
10
+ sudo apt-get install -y nginx
11
+ sudo /usr/share/hhvm/install_fastcgi.sh
12
+ root=" $( pwd) /tests/PHPCurlClass"
13
+ root=" ${root// \/ / \\ / } "
14
+ sudo sed --in-place --regexp-extended ' s/listen 80 default_server;/listen 8000 default_server;/' /etc/nginx/sites-enabled/default
15
+ sudo sed --in-place --regexp-extended " s/root \/usr\/share\/nginx\/html;/root ${root} ;/" /etc/nginx/sites-enabled/default
16
+ sudo sed --in-place --regexp-extended ' s/index index.html index.htm;/index index.php;/' /etc/nginx/sites-enabled/default
17
+ sudo /etc/init.d/nginx restart
18
+ fi
Original file line number Diff line number Diff line change
1
+ find . -type " f" -iname " *.php" | xargs -L " 1" php -l
2
+
3
+ if [[ " ${TRAVIS_PHP_VERSION} " != " 5.3" ]]; then
4
+ cd tests && phpunit --configuration phpunit.xml
5
+ fi
You can’t perform that action at this time.
0 commit comments