-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
76 lines (63 loc) · 2.07 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
# Travis CI build configuration config file.
language: php
python:
- 5.5
addons:
hosts:
- localhost
apt:
packages:
# - drush # See: https://github.com/travis-ci/apt-package-whitelist/issues/1611
- wget
- realpath
- tree
- html2text
notifications:
email:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
# Environment
sudo: false
env:
global:
- MODULES="booking_timeslots"
- REVIEWS="upgrade7x,comment,druplart,i18n,i18n_po,production,security,sniffer,sql,style"
- URL="http://$HOSTNAME:8080/"
- COMPOSER_BIN_DIR=~/bin
- PATH=${PATH//:\.\/node_modules\/\.bin/} # Fixes Travis bug: https://github.com/travis-ci/travis-ci/issues/4862
matrix:
- CORE=7 DRUSH_EN="booking_timeslots_example"
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- env
- set -e # Fail build on first error.
install:
- gem install mailcatcher
- mailcatcher -v && echo 'sendmail_path="/usr/bin/env catchmail"' | tee -a "$(php --ini | grep "Loaded Configuration" | awk '{print $4}')"
- composer global require drush/drush:dev-master && drush --version
- drush qd --yes --server=$URL --no-server --watchdog --core=drupal-$CORE testsite $MODULES && cd testsite/drupal-*
before_script:
- drush -v rs $URL &
- drush dl coder --destination=~/.drush && drush cc drush
- drush -vy en $DRUSH_EN
- html2text <(wget -O- --retry-connrefused $URL)
script:
- drush -vd status --full
# - drush -vd coder --reviews=$REVIEWS --severity=major --no-empty $MODULES
- drush core-requirements --severity=2 | grep -i error
after_success:
- html2text <(curl http://localhost:1080)
- html2text <(wget -qO- $URL)
after_failure:
- sudo wget -qO- $URL | html2text
- drush --version
- drush core-requirements --severity=2
- drush status --full
- drush ws --full
- tree -d -L 6 # Print directory structure in the form of a tree.
after_script:
- echo $TRAVIS_TEST_RESULT