mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Merge pull request #39 from zborboa-google/master
Fix #38: Use HHVM's built-in web server for continuous integration tests
This commit is contained in:
+5
-2
@@ -10,7 +10,10 @@ matrix:
|
||||
- php: 5.6
|
||||
- php: hhvm
|
||||
before_script:
|
||||
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
|
||||
- if [[ "$TRAVIS_PHP_VERSION" == "5.4" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
|
||||
- if [[ "$TRAVIS_PHP_VERSION" == "5.5" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
|
||||
- if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then sh -c "php -S 127.0.0.1:8000 -t tests/PHPCurlClass/ &"; fi
|
||||
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then sh -c "cd tests && hhvm --mode server --port 8000 --config PHPCurlClass/server.hdf &"; fi
|
||||
script:
|
||||
- php -l src/*
|
||||
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" ]]; then cd tests && phpunit --configuration phpunit.xml; fi
|
||||
- if [[ "$TRAVIS_PHP_VERSION" != "5.3" ]]; then sh -c "cd tests && phpunit --configuration phpunit.xml"; fi
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Server {
|
||||
DefaultDocument = index.php
|
||||
}
|
||||
Reference in New Issue
Block a user