attempt to push test responsibility off to travis: round 1
This commit is contained in:
parent
6cb4f82445
commit
5cc6920b23
3 changed files with 24 additions and 5 deletions
18
.travis.yml
18
.travis.yml
|
|
@ -38,12 +38,30 @@ matrix:
|
||||||
language: perl
|
language: perl
|
||||||
perl: "5.10"
|
perl: "5.10"
|
||||||
env: BINDINGS=perl CC=clang
|
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:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- 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" != "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
|
- if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
|
||||||
|
|
||||||
install: true
|
install: true
|
||||||
|
before_script:
|
||||||
|
- if [ "$BINDINGS" == "php" ]; then phpenv config-add hammer.ini; fi
|
||||||
script:
|
script:
|
||||||
- scons bindings=$BINDINGS test
|
- scons bindings=$BINDINGS test
|
||||||
notifications:
|
notifications:
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ swig = ['hammer.i']
|
||||||
|
|
||||||
libhammer_php = phpenv.SharedLibrary('hammer', swig)
|
libhammer_php = phpenv.SharedLibrary('hammer', swig)
|
||||||
|
|
||||||
phptestenv = phpenv.Clone()
|
#phptestenv = phpenv.Clone()
|
||||||
phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
#phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
|
||||||
tests = phptestenv.Dir('Tests/')
|
#tests = phptestenv.Dir('Tests/')
|
||||||
phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
|
#phptestenv.Command(tests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET")
|
||||||
|
|
||||||
Clean('.', ['hammer.php'])
|
Clean('.', ['hammer.php'])
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
enable_dl = On
|
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"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue