-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (70 loc) · 1.8 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
80
81
82
83
84
85
86
87
88
89
90
#
# Example .travis.yml file.
#
# Copy to your project and rename to .travis.yml.
# Customize per the instructions below.
#
language: php
php:
- 5.6
mysql:
database: drupal
username: root
encoding: utf8
cache:
directories:
- node_modules
addons:
apt:
packages:
- google-chrome-beta
env:
- GOOGLE_CHROME_BINARY=/usr/bin/google-chrome-beta
before_install:
- composer self-update
- npm install
- npm install -g gulp-cli
- npm install -g gulp
- npm install gulp
- npm install gulp-util
- npm install git-guppy
- npm install -g lighthouse
- npm install lighthouse
- npm install split-json
- npm install fs
install:
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- source ~/.bashrc
# Install Drush
- composer global require drush/drush:dev-master
- phpenv rehash
#- yarn global add lighthouse
# Create MySQL Database
# - mysql -e 'create database drupal;'
# Tweak PHP configuration.
# Copied from Lightning.
# We were getting an error where drush si is trying to send mail even though the flag to prevent that was set.
- echo 'max_execution_time = 120' >> drupal.php.ini;
- echo 'sendmail_path = /bin/true' >> drupal.php.ini;
- phpenv config-add drupal.php.ini
- phpenv rehash
# Create project
- composer install
- rm -rf docroot/sites
- mkdir docroot/sites
- mv sites/* docroot/sites
- cd docroot
# Create MySQL Database
- mysql -e 'create database drupal;'
# Install drupal default profile
- drush --verbose site-install --db-url=mysql://root:@127.0.0.1/drupal --yes
script:
- gulp lighthouse
notifications:
email:
recipients:
on_success: always
on_failure: always