-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
27 lines (27 loc) · 946 Bytes
/
.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
language: php
php:
- 7.0
services:
- mysql
before_install:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer --verbose self-update
- composer --version
- mysql -e "create database IF NOT EXISTS test;" -uroot
install:
- composer --verbose install
- cd $TRAVIS_BUILD_DIR/web
- chmod -R 777 sites/default
- touch sites/default/settings.local.php
- ./../vendor/bin/drush site-install minimal --verbose --yes --db-url=mysql://[email protected]/test
- ./../vendor/bin/drush cset system.site uuid ffb6d131-689a-415d-a300-0af2e090ef1e -y
before_script:
- ./../vendor/bin/drush cim --verbose --yes
- ./../vendor/bin/drush updb --verbose --yes
- ./../vendor/bin/drush cr
- ./../vendor/bin/drush runserver http://127.0.0.1:8888 &
- ./../vendor/bin/wait-for-listen 8888 127.0.0.1 30
script:
- cd $TRAVIS_BUILD_DIR
- composer test