Skip to content

Commit

Permalink
Add Travis build status.
Browse files Browse the repository at this point in the history
  • Loading branch information
amitaibu committed Oct 24, 2014
1 parent c780b4d commit f5d8d4e
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: php

php:
- 5.3

mysql:
database: drupal
username: root
encoding: utf8

before_script:
# navigate out of module directory to prevent blown stack by recursive module lookup
- cd ../..

# install drush
- pear channel-discover pear.drush.org
- pear install drush/drush-5.8.0
- phpenv rehash

# install php packages required for running a web server from drush on php 5.3
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes php5-cgi php5-mysql

# create new site, stubbing sendmail path with true to prevent delivery errors and manually resolving drush path
- mysql -e 'create database drupal'
- php -d sendmail_path=`which true` `pear config-get php_dir`/drush/drush.php --yes core-quick-drupal --profile=testing --no-server --db-url=mysql://root:@127.0.0.1/drupal --enable=simpletest message_subscribe

# reference and enable module in build site
- ln -s $(readlink -e $(cd -)) message_subscribe/drupal/sites/all/modules/message_subscribe
- cd message_subscribe/drupal
- drush --yes pm-enable message_subscribe message_subscribe_email
- drush dl og -y

# 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 "Message subscribe" --uri=http://127.0.0.1:8080
File renamed without changes.
3 changes: 2 additions & 1 deletion message_subscribe_email/message_subscribe_email.info
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name = Message subscribe email
core = 7.x
php = 5.2.4
version = 7.x-1.0
project = message_subscribe_email
project = message_subscribe
dependencies[] = message_subscribe
dependencies[] = flag
dependencies[] = list
dependencies[] = views
Expand Down
6 changes: 3 additions & 3 deletions message_subscribe_email/message_subscribe_email.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class MessageSubscribeEmailTestHelper extends DrupalWebTestCase {
function setUp() {
parent::setUp('message_subscribe_email', 'message_subscribe', 'flag');
parent::setUp('message_subscribe', 'flag', 'message_subscribe_email');

// Create node-type.
$node_type = $this->drupalCreateContentType();
Expand Down Expand Up @@ -72,7 +72,7 @@ class MessageSubscribeEmailSubscribersTest extends MessageSubscribeEmailTestHelp
return array(
'name' => 'Get email subscribers',
'description' => 'Get email subscribers from content.',
'group' => 'Message subscribe email',
'group' => 'Message subscribe',
);
}

Expand Down Expand Up @@ -149,7 +149,7 @@ class MessageSubscribeEmailNotificationsTest extends MessageSubscribeEmailTestHe
return array(
'name' => 'Check email notifications',
'description' => 'Check automatic email notifications for content.',
'group' => 'Message subscribe email',
'group' => 'Message subscribe',
);
}

Expand Down
2 changes: 1 addition & 1 deletion message_subscribe_ui/message_subscribe_ui.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ core = 7.x
package = Message
php = 5.2.4
version = 7.x-1.0
project = message_subscribe_ui
project = message_subscribe
dependencies[] = message_subscribe
dependencies[] = views
dependencies[] = views_content
Expand Down

0 comments on commit f5d8d4e

Please sign in to comment.