forked from acquia/blt-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (38 loc) · 1.22 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
language: php
cache:
bundler: true
apt: true
directories:
- "$HOME/.drush/cache"
- "$HOME/.npm"
php:
- 7.1
sudo: false
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer --version
install:
# Add Composer's local bin directory to the PATH so that we will be running
# our installed versions of Drush, PHPCS, Behat, PhantomJS, etc.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
# Speed up Composer operations.
- composer global require "hirak/prestissimo:^0.3"
# MySQL Options
- mysql -e 'SET GLOBAL wait_timeout = 5400;'
- mysql -e "SHOW VARIABLES LIKE 'wait_timeout'"
# PHP conf tweaks
- 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 dummy local repository so we can test this particular commit of blt-project.
- envsubst < .test-packages.json > packages.json
script:
# Build the code base.
- cd ../
- COMPOSER_MEMORY_LIMIT=-1 composer create-project --repository-url=$TRAVIS_BUILD_DIR/packages.json acquia/blt-project blt-example --no-interaction