Browse Source

Merge pull request #313 from jonathangreen/travis

Some changes for travis
pull/306/merge
Jonathan Green 12 years ago
parent
commit
ff654913bd
  1. 3
      .travis.yml
  2. 14
      tests/scripts/line_endings.sh
  3. 0
      tests/scripts/travis_setup.sh

3
.travis.yml

@ -9,10 +9,11 @@ env:
- FEDORA_VERSION="3.5"
before_install:
- export ISLANDORA_DIR=$TRAVIS_BUILD_DIR
- $TRAVIS_BUILD_DIR/tests/travis_setup.sh
- $TRAVIS_BUILD_DIR/tests/scripts/travis_setup.sh
- cd $HOME/drupal-*
script:
- ant -buildfile sites/all/modules/islandora/build.xml lint
- $ISLANDORA_DIR/tests/scripts/line_endings.sh sites/all/modules/islandora
- drush dcs sites/all/modules/islandora
- phpcpd --names *.module,*.inc,*.test sites/all/modules/islandora
- drush test-run --uri=http://localhost:8081 Islandora

14
tests/scripts/line_endings.sh

@ -0,0 +1,14 @@
#!/bin/bash
RETURN=0
FILES=`find -L $1 -name "*.info" -o -name "*.txt" -o -name "*.md"`
echo "Testing for files with DOS line endings..."
for FILE in $FILES
do
file $FILE | grep CRLF
if [ $? == 0 ]
then
RETURN=1
fi
done
exit $RETURN

0
tests/travis_setup.sh → tests/scripts/travis_setup.sh

Loading…
Cancel
Save