-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
39 lines (39 loc) · 1.88 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: php
dist: precise
sudo: required
php:
- 5.3.3
- 5.4
branches:
only:
- /^7.x/
env:
- FEDORA_VERSION="3.5"
- FEDORA_VERSION="3.6.2"
- FEDORA_VERSION="3.7.0"
before_install:
- cd $HOME
- git clone -b 7.x git://github.com/Islandora/islandora.git
- git clone -b 7.x git://github.com/Islandora/islandora_paged_content.git
- git clone -b 7.x git://github.com/Islandora/islandora_solution_pack_collection.git
- git clone -b 7.x git://github.com/Islandora/islandora_solution_pack_large_image.git
- git clone -b 7.x git://github.com/Islandora/islandora_ocr.git
- export ISLANDORA_DIR=$HOME/islandora
- $HOME/islandora/tests/scripts/travis_setup.sh
- sudo sh $TRAVIS_BUILD_DIR/tests/scripts/adore.sh
- sudo sh $TRAVIS_BUILD_DIR/tests/scripts/tesseract.sh
- cd $HOME/drupal-*
- ln -s $TRAVIS_BUILD_DIR sites/all/modules/islandora_solution_pack_manuscript
- ln -s $HOME/islandora_paged_content sites/all/modules/islandora_paged_content
- ln -s $HOME/islandora_solution_pack_collection sites/all/modules/islandora_solution_pack_collection
- ln -s $HOME/islandora_ocr sites/all/modules/islandora_ocr
- ln -s $HOME/islandora_solution_pack_large_image sites/all/modules/islandora_solution_pack_large_image
- drush dl imagemagick
- drush en --user=1 --yes islandora_ocr islandora_large_image imagemagick islandora_manuscript islandora_basic_collection
- drush vset islandora_ocr_tesseract `which tesseract`
script:
- ant -buildfile sites/all/modules/islandora_solution_pack_manuscript/build.xml lint
- $ISLANDORA_DIR/tests/scripts/line_endings.sh sites/all/modules/islandora_solution_pack_manuscript
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer islandora_manuscript
- phpcpd --names *.module,*.inc,*.test sites/all/modules/islandora_solution_pack_manuscript
# - drush test-run --user=1 --uri=http://localhost:8081 "Islandora Manuscript"