forked from relaxedws/drupal-replication
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (33 loc) · 1.18 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
sudo: false
language: php
php:
- 5.6
- 7.0
env:
- MAKE_FILE=drupal-8.2.x.make.yml
- MAKE_FILE=drupal-8.3.x.make.yml
matrix:
allow_failures:
- env: MAKE_FILE=drupal-8.2.x.make.yml
fast_finish: true
services:
- mysql
addons:
apt:
packages:
- nginx
cache:
directories:
- $HOME/.drush/cache/download
before_install:
- 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.0.0-rc3/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
install:
- ln -s $TRAVIS_BUILD_DIR ~/www/modules/replication
script:
- cd ~/www && php ./core/scripts/run-tests.sh --verbose --keep-results --color --concurrency 4 --php `which php` --sqlite /tmp/test.sqlite --url http://localhost:8080 --module replication