forked from relaxedws/drupal-relaxed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (44 loc) · 1.55 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
sudo: false
language: php
php:
- 5.5
- 5.6
- 7.0
matrix:
fast_finish: true
services:
- mysql
- couchdb
addons:
apt:
packages:
- nginx
env:
matrix:
- SCRIPT='modules/relaxed/tests/bin/drupal.sh'
- SCRIPT='modules/relaxed/tests/bin/php-replicator.sh'
- SCRIPT='modules/relaxed/tests/bin/replicate-endpoint.sh'
- SCRIPT='modules/relaxed/tests/bin/drupal-to-couchdb.sh'
- SCRIPT='modules/relaxed/tests/bin/couchdb-to-drupal.sh'
- SCRIPT='modules/relaxed/tests/bin/drupal-to-drupal.sh'
- SCRIPT='modules/relaxed/tests/bin/pouchdb.sh'
notifications:
slack: det:YiOiwfzUBtt9aTnWvocK8uDI
cache:
directories:
- $HOME/.drush/cache/download
before_install:
- composer self-update
- mysql -uroot < $TRAVIS_BUILD_DIR/.travis/mysql.sql
- 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/drupal.make.yml $HOME/www
- composer --working-dir=$HOME/www require relaxedws/replicator:dev-master
install:
- ln -s $TRAVIS_BUILD_DIR ~/www/modules/relaxed
- php ~/drush.phar --root=$HOME/www --yes site-install --account-pass=admin --db-url=mysql://root:@127.0.0.1/drupal0 testing
script:
- cd ~/www && bash $SCRIPT