-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (58 loc) · 2.08 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
language: php
sudo: false
php:
- 5.6
mysql:
database: drupal
username: root
encoding: utf8
matrix:
fast_finish: true
# Cache Composer & Drush directories.
cache:
directories:
- $HOME/.composer/cache
- $HOME/.drush/cache
install:
# Remove xdebug for the moment. We aren't generating code coverage, and it slows us down.
- rm /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
# Create database.
- "mysql -e 'create database drupal;'"
# Install latest Drush 6.
- travis_retry composer self-update && composer --version
- travis_retry composer global require "drush/drush:6.*"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# Build Codebase
- cd ..
- mkdir private_files
- mkdir profiles
- mv discimport-build profiles/
- mkdir drupal
- mv profiles drupal/
# Build the current branch
- cd drupal
- drush make --yes profiles/discimport-build/build-discimport-dev.make --prepare-install
- drush dl diff
- cd ../
# Setup files
- chmod -R 777 drupal/sites/all
# Increase the MySQL connection timeout on the PHP end.
- echo "mysql.connect_timeout=3000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "default_socket_timeout=3000" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# Increase the MySQL server timetout and packet size.
- mysql -e "SET GLOBAL wait_timeout = 36000;"
- mysql -e "SET GLOBAL max_allowed_packet = 33554432;"
# Disable sendmail
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
- cd drupal
- drush si commerce_kickstart --db-url=mysql://root:@127.0.0.1/drupal --account-name=admin --account-pass=DISCIMPORT@2012 --site-mail=admin@example.com --site-name="discimport.dk" --yes
- drush pm-disable dblog --yes
- drush en discimport_deploy -y
- drush cc all --yes
script:
# Testing that it has been build correctly
- test -d profiles/commerce_kickstart
- test -d sites/all/modules/contrib
# Testing no features are overridden
- ./profiles/discimport-build/scripts/check-overridden.sh