-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
45 lines (33 loc) · 1.36 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
language: php
php:
- 7.1
matrix:
fast_finish: true
mysql:
database: travis_ci_drupal_hu_test
username: root
encoding: utf8
before_install:
# 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
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- export COMPOSER_HOME="$HOME/.composer"
- export PATH="$COMPOSER_HOME/vendor/bin:$PATH"
install:
- composer global require drush/drush:6.*
- ls -la "${COMPOSER_HOME}/vendor/bin"
before_script:
# navigate out of module directory to prevent blown stack by recursive module lookup
- cd docroot
# create new site, stubbing sendmail path with true to prevent delivery errors and manually resolving drush path
- mysql -e 'create database travis_ci_drupal_hu_test'
- php -d sendmail_path='/bin/true' ~/.composer/vendor/bin/drush.php --yes site-install testing --db-url=mysql://root:@127.0.0.1/travis_ci_drupal_hu_test
- drush --yes en simpletest
# 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: ../scripts/run-tests.sh
notifications:
slack: drupalhu:PaRaPcc5EKNTllHnR56jD7Pj