attempt to push test responsibility off to travis: round 1

This commit is contained in:
Meredith L. Patterson 2013-11-20 22:43:15 -06:00
parent 6cb4f82445
commit 5cc6920b23
3 changed files with 24 additions and 5 deletions

View file

@ -38,12 +38,30 @@ matrix:
language: perl
perl: "5.10"
env: BINDINGS=perl CC=clang
- compiler: gcc
language: php
php: "5.5"
env: BINDINGS=php
- compiler: clang
language: php
php: "5.5"
env: BINDINGS=php CC=clang
- compiler: gcc
language: php
php: "5.4"
env: BINDINGS=php
- compiler: clang
language: php
php: "5.4"
env: BINDINGS=php CC=clang
before_install:
- sudo apt-get update -qq
- if [ "$BINDINGS" != "none" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; swig -version; fi
- if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
install: true
before_script:
- if [ "$BINDINGS" == "php" ]; then phpenv config-add hammer.ini; fi
script:
- scons bindings=$BINDINGS test
notifications:

View file

@ -16,9 +16,9 @@ swig = ['hammer.i']
libhammer_php = phpenv.SharedLibrary('hammer', swig)
phptestenv = phpenv.Clone()
phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
tests = phptestenv.Dir('Tests/')
phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
#phptestenv = phpenv.Clone()
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
#tests = phptestenv.Dir('Tests/')
#phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
Clean('.', ['hammer.php'])

View file

@ -1,2 +1,3 @@
enable_dl = On
extension = "/home/travis/build/abiggerhammer/hammer/build/opt/src/bindings/libhammer.so"
extension = "/home/travis/build/abiggerhammer/hammer/build/opt/src/bindings/libhammer.so"
include_path = ".:/home/travis/build/abiggerhammer/hammer/build/opt/src/bindings"