mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12470] Move phing sniff into new .sh
PHPBB3-12470
This commit is contained in:
parent
3b823465db
commit
acf9524710
2 changed files with 18 additions and 3 deletions
|
@ -28,9 +28,7 @@ before_script:
|
||||||
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
- sh -c "if [ '$DB' = 'mysql' -o '$DB' = 'mariadb' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cd build
|
- travis/phing-code-sniff.sh $DB $TRAVIS_PHP_VERSION
|
||||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' ]; then ../phpBB/vendor/bin/phing sniff; fi"
|
|
||||||
- cd ..
|
|
||||||
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
- phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml
|
||||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.5' -a '$DB' = 'mysql' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
||||||
|
|
||||||
|
|
17
travis/phing-sniff.sh
Executable file
17
travis/phing-sniff.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# @copyright (c) 2014 phpBB Group
|
||||||
|
# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
DB=$1
|
||||||
|
TRAVIS_PHP_VERSION=$2
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PHP_VERSION" == "5.5" -a "$DB" == "mysql" ]
|
||||||
|
then
|
||||||
|
cd build
|
||||||
|
../phpBB/vendor/bin/phing sniff
|
||||||
|
cd ..
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue