-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (34 loc) · 1.31 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
sudo: false
language: php
php:
- 5.6
- 7.1
env:
- MAKE_FILE=drupal-8.5.x.make.yml
- MAKE_FILE=drupal-8.6.x.make.yml
services:
- mysql
addons:
apt:
packages:
- nginx
cache:
directories:
- $HOME/.drush/cache/download
before_install:
- composer self-update
- cp $TRAVIS_BUILD_DIR/.travis/php.ini ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/
- cp $TRAVIS_BUILD_DIR/.travis/php-fpm.conf ~/.phpenv/versions/$(phpenv version-name)/etc/
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
- nginx -c $TRAVIS_BUILD_DIR/.travis/nginx.conf
- wget -P ~/ https://github.com/drush-ops/drush/releases/download/8.1.16/drush.phar && chmod +x ~/drush.phar
- php ~/drush.phar make $TRAVIS_BUILD_DIR/.travis/$MAKE_FILE $HOME/www
- php ~/drush.phar --root=$HOME/www --yes site-install --db-url=mysql://root:@127.0.0.1/drupal testing
- composer --working-dir=$HOME/www run-script drupal-phpunit-upgrade
install:
- ln -s $TRAVIS_BUILD_DIR ~/www/modules/replication
script:
- cd ~/www && php ./core/scripts/run-tests.sh --suppress-deprecations --verbose --keep-results --color --concurrency 4 --php `which php` --sqlite /tmp/test.sqlite --url http://localhost:8080 --module replication
after_script:
- find ~/www/sites/simpletest/browser_output -type f -exec cat {} \;
- cat /tmp/error.log