-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (45 loc) · 1.21 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
51
52
53
54
55
language: php
php:
- "7.3"
sudo: false
addons:
chrome: stable
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_CHANNEL
- composer --version
matrix:
fast_finish: true
env:
global:
- DATABASE='drupal'
- DB_USERNAME='root'
- DB_ENCODE='utf8'
mysql:
database: $DATABASE
username: $DB_USERNAME
encoding: $DB_ENCODE
install:
- composer --verbose install
before_script:
- nvm install 10
- nvm use 10
- node --version
- npm i chromedriver@81
- ./node_modules/.bin/chromedriver --port=8643 --url-base=wd/hub &
- php -d sendmail_path=`which true` ./vendor/bin/drush si minimal --db-url="mysql://[email protected]/$DATABASE" -y
- ./vendor/bin/drush cset system.site uuid f24ccad9-2caf-47c5-97d5-5e111c8c4572 -y
- composer import
- composer import
- ./vendor/bin/drush cr
- ./vendor/bin/drush runserver 127.0.0.1:8888 &
- ./vendor/bin/wait-for-listen 8888
- ./vendor/bin/wait-for-listen 8643 127.0.0.1
script:
- composer test
- ./vendor/bin/drush cex -y
- git status
- /bin/bash ./scripts/travis-check.sh