mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 12:44:38 +01:00
Merge pull request #252 from bantu/travis/reorganisation
Reorganise travis configuration * bantu/travis/reorganisation: Put PHP extension installation into a shell script. Add a folder for travis.
This commit is contained in:
commit
80310d61b4
@ -10,12 +10,11 @@ php:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
# Defines CODE_COVERAGE_PASSPHRASE which is the passphrase for unlocking
|
# Defines CODE_COVERAGE_PASSPHRASE which is the passphrase for unlocking
|
||||||
# the tests/code_coverage_id_rsa RSA private key.
|
# the travis/code_coverage_id_rsa RSA private key.
|
||||||
- secure: "jtQTZKQBnzUlp/jz7NlM6470ZDnLGVAs53sgvIm4tcYqf9TWSXSXjIYvFsrS\nKPR2eyZaAevYysUkIGRFTUXTlG6tC36YngMp9+6FPxASl8mnGXsTbKcm613B\n59vD3242pgIgqhhmgFQ0c8gbvnE8PuF2aS4/hluP3r+AxhWN56E="
|
- secure: "jtQTZKQBnzUlp/jz7NlM6470ZDnLGVAs53sgvIm4tcYqf9TWSXSXjIYvFsrS\nKPR2eyZaAevYysUkIGRFTUXTlG6tC36YngMp9+6FPxASl8mnGXsTbKcm613B\n59vD3242pgIgqhhmgFQ0c8gbvnE8PuF2aS4/hluP3r+AxhWN56E="
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- git clone git://github.com/zenovich/runkit.git && cd runkit && phpize && ./configure && make && make install && cd ..
|
- travis/install-php-extensions.sh
|
||||||
- echo "extension=runkit.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
|
||||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then composer install --dev --no-interaction; fi"
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' ]; then composer install --dev --no-interaction; fi"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
@ -23,4 +22,4 @@ script:
|
|||||||
- phpunit --verbose --coverage-text --coverage-html code_coverage/
|
- phpunit --verbose --coverage-text --coverage-html code_coverage/
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then tests/code_coverage_upload.sh; fi"
|
- sh -c "if $TRAVIS_SECURE_ENV_VARS; then travis/upload-code-coverage.sh; fi"
|
||||||
|
25
travis/install-php-extensions.sh
Executable file
25
travis/install-php-extensions.sh
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# This file is part of the phpseclib project.
|
||||||
|
#
|
||||||
|
# (c) Andreas Fischer <bantu@phpbb.com>
|
||||||
|
#
|
||||||
|
# For the full copyright and license information, please view the LICENSE
|
||||||
|
# file that was distributed with this source code.
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
function install_php_extension
|
||||||
|
{
|
||||||
|
cd "$1"
|
||||||
|
phpize
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
||||||
|
}
|
||||||
|
|
||||||
|
# runkit
|
||||||
|
git clone git://github.com/zenovich/runkit.git
|
||||||
|
install_php_extension 'runkit'
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# This file is part of the phpseclib test suite.
|
# This file is part of the phpseclib project.
|
||||||
#
|
#
|
||||||
# (c) Andreas Fischer <bantu@phpbb.com>
|
# (c) Andreas Fischer <bantu@phpbb.com>
|
||||||
#
|
#
|
||||||
@ -13,7 +13,7 @@ HOSTNAME='phpseclib.bantux.org'
|
|||||||
HOSTRSAF='09:40:96:14:6a:cd:67:46:17:e5:b4:39:24:24:6e:9d'
|
HOSTRSAF='09:40:96:14:6a:cd:67:46:17:e5:b4:39:24:24:6e:9d'
|
||||||
LDIRNAME='code_coverage'
|
LDIRNAME='code_coverage'
|
||||||
RDIRNAME='code_coverage'
|
RDIRNAME='code_coverage'
|
||||||
ID_RSA='tests/code_coverage_id_rsa'
|
ID_RSA='travis/code_coverage_id_rsa'
|
||||||
|
|
||||||
# Install expect if necessary
|
# Install expect if necessary
|
||||||
if ! which expect > /dev/null
|
if ! which expect > /dev/null
|
Loading…
Reference in New Issue
Block a user