-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
79 lines (67 loc) · 3.05 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
sudo: false
language: php
php:
- 7.2
- 7.3
matrix:
allow_failures:
# One of the Drupal 8.6.x tests should fail because of an incompatibility in the Key module.
- env: SCRIPT='modules/relaxed/tests/bin/drupal.sh' MAKE_FILE=drupal-8.6.x.make.yml
- env: SCRIPT='modules/relaxed/tests/bin/drupal.sh' MAKE_FILE=drupal-8.8.x.make.yml
- env: SCRIPT='modules/relaxed/tests/bin/replication.sh' MAKE_FILE=drupal-8.8.x.make.yml
- env: SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.6.x.make.yml
- env: SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.7.x.make.yml
- env: SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.8.x.make.yml
fast_finish: true
services:
- mysql
# In Docker we will have CouchDB 2.2.0 on 127.0.0.1:3001.
- docker
addons:
apt:
packages:
- nginx
env:
matrix:
- SCRIPT='modules/relaxed/tests/bin/drupal.sh' MAKE_FILE=drupal-8.6.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/drupal.sh' MAKE_FILE=drupal-8.7.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/drupal.sh' MAKE_FILE=drupal-8.6.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/replication.sh' MAKE_FILE=drupal-8.6.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/replication.sh' MAKE_FILE=drupal-8.7.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/replication.sh' MAKE_FILE=drupal-8.8.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.6.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.7.x.make.yml
- SCRIPT='modules/relaxed/tests/bin/pouchdb.sh' MAKE_FILE=drupal-8.8.x.make.yml
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.2.3/drush.phar && chmod +x ~/drush.phar
- php ~/drush.phar make $TRAVIS_BUILD_DIR/.travis/$MAKE_FILE $HOME/www
- composer --working-dir=$HOME/www require relaxedws/replicator:dev-master
# Install CouchDB.
- export COUCH_PORT=5984
- export COUCHDB_VERSION=2.3.1
- source ./tests/bin/run-couchdb.sh
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
- if [ $MAKE_FILE != drupal-8.8.x.make.yml ]; then composer --working-dir=$HOME/www run-script drupal-phpunit-upgrade; fi
script:
- cd ~/www && bash $SCRIPT
after_script:
- find ~/www/sites/simpletest/browser_output -type f -exec cat {} \;
- cat /tmp/error.log
# -----------------------
- cat /tmp/access8080.log
# -----------------------
- cat /tmp/access8081.log
# -----------------------