-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.travis.yml
59 lines (46 loc) · 1.23 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
language: php
sudo: false
php:
- 7.0
- 7.1
matrix:
fast_finish: true
env:
# Cache Composer & Drush directories.
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
mysql:
database: simpletest_db
username: root
encoding: utf8
before_install:
# Disable xdebug.
- phpenv config-rm xdebug.ini
# Update composer.
- composer self-update
- composer --version
# Add the oauth token to prevent GitHub timeouts.
# - git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
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="$TRAVIS_BUILD_DIR/vendor/bin:$PATH"
# Composer install should fail on bad patches.
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1
# 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
# Let Composer do all the magic!
- composer install
script:
- ./run-tests.sh
- composer phpcs