Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use PHPUnit

  • Loading branch information...
commit d4def1a33689d36b9405b205cd1f505c7114a14b 1 parent f22c40d
@stealth35 stealth35 authored
Showing with 13 additions and 29 deletions.
  1. +2 −16 .travis.yml
  2. +11 −0 phpunit.xml.dist
  3. +0 −13 travis/compile.sh
View
18 .travis.yml
@@ -5,20 +5,6 @@ php:
- 5.3
- 5.4
-notifications:
- email:
- recipients:
- - julien.salleyron@gmail.com
- on_success: change # [always|never|change] default: change
- on_failure: always # [always|never|change] default: always
-
-env:
- - NO_INTERACTION=1 REPORT_EXIT_STATUS=1
-
before_script:
- - ./travis/compile.sh
-
-
-# Run PHPs run-tests.php
-script: TEST_PHP_EXECUTABLE=`php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||" | sed -e "s|etc/php.ini|bin/php|"`; export TEST_PHP_EXECUTABLE ; php run-tests.php -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --show-out
-
+ - phpize && ./configure && make && sudo make install
+ - echo "extension=AOP.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
View
11 phpunit.xml.dist
@@ -0,0 +1,11 @@
+<phpunit
+ backupGlobals="false"
+ colors="true"
+ processIsolation="true"
+>
+ <testsuites>
+ <testsuite name="PHP AOP">
+ <directory suffix=".phpt">./tests/</directory>
+ </testsuite>
+ </testsuites>
+</phpunit>
View
13 travis/compile.sh
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-sh -c "phpize && ./configure && make && sudo make install"
-PHPINI=`php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
-#echo $PHPINI;
-#PHPEXE=`echo $PHPINI | sed -e "s|etc/php.ini|bin/php|"`
-PHPEXE=`php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||" | sed -e "s|etc/php.ini|bin/php|"`
-echo $PHPEXE;
-echo $TEST_PHP_EXECUTABLE;
-echo "extension=AOP.so" >> $PHPINI
-
-INI=`php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` | sed -e "s|php.ini/conf.d/xdebug.ini"
-rm -f $INI
Please sign in to comment.
Something went wrong with that request. Please try again.