|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
sudo: required |
|
|
|
|
language: php |
|
|
|
|
php: |
|
|
|
|
- 5.3.3 |
|
|
|
@ -23,12 +24,16 @@ before_install:
|
|
|
|
|
- export ISLANDORA_DIR=$TRAVIS_BUILD_DIR |
|
|
|
|
- $TRAVIS_BUILD_DIR/tests/scripts/travis_setup.sh |
|
|
|
|
- cd $HOME/drupal-* |
|
|
|
|
before_script: |
|
|
|
|
# Mysql might time out for long tests, increase the wait timeout. |
|
|
|
|
- mysql -e 'SET @@GLOBAL.wait_timeout=1200' |
|
|
|
|
|
|
|
|
|
script: |
|
|
|
|
- ant -buildfile sites/all/modules/islandora/build.xml lint |
|
|
|
|
- $ISLANDORA_DIR/tests/scripts/line_endings.sh sites/all/modules/islandora |
|
|
|
|
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer islandora |
|
|
|
|
- phpcpd --names *.module,*.inc,*.test sites/all/modules/islandora |
|
|
|
|
- drush test-run --uri=http://localhost:8081 Islandora |
|
|
|
|
- php scripts/run-tests.sh --php `phpenv which php` --url http://localhost:8081 --verbose "Islandora" |
|
|
|
|
after_failure: |
|
|
|
|
- $ISLANDORA_DIR/tests/scripts/travis_after_failure.sh |
|
|
|
|
notifications: |
|
|
|
|