-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
40 lines (31 loc) · 1.4 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
language: php
php:
- 5.6
mysql:
database: scale_addressfield
username: root
encoding: utf8
install:
# install drush 5.x (because 6.x's test-run doesn't exit with proper status code).
- git clone https://github.com/drush-ops/drush.git /opt/drush
- pushd /opt/drush; git checkout cea2ca0; popd
- sudo ln -s /opt/drush/drush /usr/bin/drush
# install additional requirements
- sudo apt-get update > /dev/null
- sudo apt-get install -y --force-yes php5-cgi php5-mysql
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 scale_addressfield'
- php -d sendmail_path=`which true` /opt/drush/drush.php --yes core-quick-drupal --profile=testing --no-server --db-url=mysql://root:@127.0.0.1/scale_addressfield --enable=simpletest scale_addressfield
# reference and enable scale_addressfield in the build site
- ln -s $(readlink -e $(cd -)) scale_addressfield/drupal/sites/all/modules/scale_addressfield
- cd scale_addressfield/drupal
- drush --yes pm-enable scale_addressfield
- drush cc all
# start a web server on port 8080
- drush runserver 127.0.0.1:8080 &
- sleep 4
- drush vset --yes simpletest_verbose FALSE
script: drush test-run 'Scale Address Field' --uri=http://127.0.0.1:8080