forked from drupal8-rector/drupal8-rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.83 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
language: php
sudo: false
addons:
apt:
packages:
- git
php:
- 7.1
matrix:
fast_finish: true
cache:
directories:
- vendor
- $HOME/.composer/cache/files
notifications:
email: false
env:
global:
- COMPOSER_OPTIONS="--no-suggest --no-interaction"
- COMPOSER_PROCESS_TIMEOUT=0
matrix:
- CONFIG=rector.yml ANALYZE=".drupal/web/core/modules/node"
- CONFIG=rector-experimental.yml ANALYZE=".drupal/web/core/modules/node"
- CONFIG=rector.yml ANALYZE=".drupal/web/core/modules/system"
- CONFIG=rector-experimental.yml ANALYZE=".drupal/web/core/modules/system"
- CONFIG=rector.yml ANALYZE=".drupal/web/modules/contrib/commerce"
- CONFIG=rector-experimental.yml ANALYZE=".drupal/web/modules/contrib/commerce"
- CONFIG=rector.yml ANALYZE=".drupal/web/modules/contrib/apigee_edge"
- CONFIG=rector-experimental.yml ANALYZE=".drupal/web/modules/contrib/apigee_edge"
- CONFIG=rector.yml ANALYZE=".drupal/web/modules/contrib/features"
- CONFIG=rector-experimental.yml ANALYZE=".drupal/web/modules/contrib/features"
install:
- echo -en "max_execution_time = 0\nxdebug.default_enable = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Speed up Drupal core installation.
- composer global require hirak/prestissimo:^0.3.7 zaporylie/composer-drupal-optimizations:^1.1
- composer install
- composer download-drupal-core
- if [[ "$ANALYZE" = ".drupal/web/modules/contrib/commerce" ]]; then composer require drupal/commerce -d .drupal; fi
- if [[ "$ANALYZE" = ".drupal/web/modules/contrib/apigee_edge" ]]; then composer require drupal/apigee_edge -d .drupal; fi
- if [[ "$ANALYZE" = ".drupal/web/modules/contrib/features" ]]; then composer require drupal/features -d .drupal; fi
script:
- set -e
- ./vendor/bin/rector process -c .travis/$CONFIG $ANALYZE --dry-run