forked from Islandora/islandora_internet_archive_bookreader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (40 loc) · 1.47 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
40
sudo: required
language: php
php:
- 5.3.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
branches:
only:
- /^7.x/
env:
- FEDORA_VERSION="3.5"
- FEDORA_VERSION="3.6.2"
- FEDORA_VERSION="3.7.0"
- FEDORA_VERSION="3.8.1"
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
- export ISLANDORA_DIR=$HOME/islandora
- $HOME/islandora/tests/scripts/travis_setup.sh
- cd $HOME/drupal-*
- ln -s $TRAVIS_BUILD_DIR sites/all/modules/islandora_internet_archive_bookreader
- ln -s $HOME/islandora_paged_content sites/all/modules/islandora_paged_content
- drush en --yes islandora_internet_archive_bookreader
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_internet_archive_bookreader/build.xml lint
# XXX: Move the 3rd-party library stuff out of the way, so it doesn't
# throw warnings from coder.
- mv $TRAVIS_BUILD_DIR/js $HOME
- $ISLANDORA_DIR/tests/scripts/line_endings.sh sites/all/modules/islandora_internet_archive_bookreader
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer islandora_internet_archive_bookreader
# XXX: Move the 3rd-party library stuff back in, for tests.
- mv $HOME/js $TRAVIS_BUILD_DIR
- phpcpd --names *.module,*.inc,*.test sites/all/modules/islandora_internet_archive_bookreader