forked from Islandora/islandora_scholar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (61 loc) · 3.68 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: php
php:
- 5.3.3
- 5.4
- 5.5
branches:
only:
- /^7.x/
env:
- FEDORA_VERSION="3.5"
- FEDORA_VERSION="3.6.2"
- FEDORA_VERSION="3.7.0"
before_install:
- cd $HOME
- mkdir javascript
- git clone -b 7.x git://github.com/Islandora/islandora.git
- git clone -b 7.x git://github.com/Islandora/islandora_solr_search.git
- git clone -b 7.x git://github.com/Islandora/islandora_importer.git
- git clone -b 7.x git://github.com/Islandora/islandora_xacml_editor.git
- git clone -b 7.x git://github.com/Islandora/islandora_bookmark.git
- git clone -b 7.x git://github.com/Islandora/islandora_batch.git
- git clone git://github.com/Islandora/citeproc-php.git
- export ISLANDORA_DIR=$HOME/islandora
- export JAVASCRIPT_DIR=$HOME/javascript
- $HOME/islandora/tests/scripts/travis_setup.sh
- cd $HOME/drupal-*
- ln -s $TRAVIS_BUILD_DIR sites/all/modules/islandora_scholar
- ln -s $HOME/citeproc-php sites/all/libraries/citeproc-php
- ln -s $HOME/islandora_solr_search sites/all/modules/islandora_solr_search
- ln -s $HOME/islandora_importer sites/all/modules/islandora_importer
- ln -s $HOME/islandora_xacml_editor sites/all/modules/islandora_xacml_editor
- ln -s $HOME/islandora_bookmark sites/all/modules/islandora_bookmark
- ln -s $HOME/islandora_batch sites/all/modules/islandora_batch
- drush cc all
- drush -u 1 en --yes islandora_scholar bibutils citation_exporter doi_importer islandora_google_scholar islandora_scholar_embargo islandora_bibliography ris_importer endnotexml_importer pmid_importer citeproc csl
script:
- ant -buildfile sites/all/modules/islandora_scholar/build.xml lint
- sites/all/modules/islandora_scholar/tests/scripts/line_endings.sh sites/all/modules/islandora_scholar
# XXX: Move the 3rd-party library stuff out of the way, so it doesn't
# throw warnings from coder.
- mv $TRAVIS_BUILD_DIR/modules/exporter/lib/tcpdf $HOME
- find $TRAVIS_BUILD_DIR/modules/pmid/xsl/exslt -iname "*.js" -type f -exec cp --parents -v {} $JAVASCRIPT_DIR \;
- find $TRAVIS_BUILD_DIR/modules/pmid/xsl/exslt -iname "*.js" -type f -exec rm {} \;
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty islandora_scholar
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty bibutils
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty citation_exporter
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty doi_importer
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty islandora_google_scholar
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty islandora_scholar_embargo
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty islandora_bibliography
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty ris_importer
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty endnotexml_importer
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty pmid_importer
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty citeproc
- drush coder-review --reviews=production,security,style,i18n,potx,sniffer --no-empty csl
# XXX: Move the 3rd-party library stuff back in, for tests.
- mv $HOME/tcpdf $TRAVIS_BUILD_DIR/modules/exporter/lib/
- cp -Rv $JAVASCRIPT_DIR/* $TRAVIS_BUILD_DIR
- phpcpd --names *.module,*.inc,*.test sites/all/modules/islandora_scholar
- phpunit sites/all/modules/islandora_scholar/modules/citeproc/tests/CSL_Dateparser.test
- drush test-run --uri=http://localhost:8081 "Islandora Scholar"