This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (38 loc) · 1.82 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
language: php
php:
- 5.3
mysql:
database: waggle_ci
username: root
encoding: utf8
before_install:
- sudo apt-get update > /dev/null
install:
# install php packages required for running a web server from drush on php 5.3
- sudo apt-get install -y --force-yes php5-cgi php5-mysql
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# install drush globally
- composer global require drush/drush:6.*
- composer global require zendframework/zendframework1:1.*
# hack to check install path of zend
- export PHP_INCLUDE_PATH=`php -r "phpinfo();" | grep include_path | sed -e "s/.*=> //"`
- echo "include_path = $PHP_INCLUDE_PATH:$HOME/.composer/vendor/zendframework/zendframework1/library" >> ~/.phpenv/versions/`phpenv version-name`/etc/conf.d/travis.ini
before_script:
# navigate out of module directory to prevent blown stack by recursive module lookup
- cd ../..
# create new site, stubbing sendmail path with true to prevent delivery errors and manually resolving drush path
- mysql -e 'create database waggle_ci'
- php -d sendmail_path=`which true` ~/.composer/vendor/bin/drush.php --yes core-quick-drupal --profile=testing --no-server --db-url=mysql://root:@127.0.0.1/waggle_ci waggle_ci
# reference and enable waggle in build site
- ln -s $(readlink -e $(cd -)) waggle_ci/drupal/sites/all/modules/waggle
- cd waggle_ci/drupal
- drush --yes pm-enable simpletest
- drush --yes pm-enable waggle
- drush dl registry_rebuild
- drush rr
# start a web server on port 8080, run in the background; wait for initialization
- drush runserver 127.0.0.1:8080 &
- until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done
script: drush test-run Waggle --uri=http://127.0.0.1:8080