-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
67 lines (53 loc) · 1.57 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
language: php
# list any PHP version you want to test against
php:
- 5.5
- 5.6
matrix:
allow_failures:
- php: 5.5
# Handle git submodules manually
git:
submodules: false
env:
global:
- DBCREDS=root
# Install composer binaries into local bin directory.
# see: http://www.drush.org/en/master/install-alternative/#install-a-global-drush-via-composer
- COMPOSER_BIN_DIR="$HOME/bin"
- PATH="$COMPOSER_BIN_DIR:$PATH"
# whitelist
branches:
only:
- master
- release
before_install:
- sudo apt-get update > /dev/null
- composer self-update
- mkdir -p "$COMPOSER_BIN_DIR"
install:
# install php packages required for running a web server from drush on php 5.3
- sudo apt-get install -y --force-yes php5-cgi php5-mysql
# install drush globally
- composer global require drush/drush:8.*
before_script:
- echo 'sendmail_path="/bin/true"' | tee -a "$(php --ini | grep "Loaded Configuration" | awk '{print $4}')"
# Use sed to replace the SSH URL with the public URL, then initialize
# submodules before_install:
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
- git submodule update --init --recursive
script:
- bash scripts/build_luggage.sh
after_script:
- drush runserver --server=builtin 8080 &
- sleep 4
- drush --yes en simpletest
- drush vset --yes simpletest_verbose FALSE
- drush test-run "menu pathauto path pathologic" --uri=http://127.0.0.1:8080 --debug
notifications:
email: false
irc:
channels:
- "irc.freenode.org##luggage"
on_success: never
on_failure: always