forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (60 loc) · 1.91 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
---
language: php
php: "7.2"
addons:
chrome: stable
cache:
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.rvm"
- "$TMPDIR/phpstan/cache"
services:
- mysql
env:
global:
# ORCA configuration.
- ORCA_SUT_NAME=acquia/blt
- ORCA_SUT_BRANCH=10.x
- ORCA_VERSION=dev-master
# Custom configuration.
- COMPOSER_BIN=$TRAVIS_BUILD_DIR/vendor/bin
- BLT_DIR=$TRAVIS_BUILD_DIR
- DRUPAL_CORE_HEAD=8.8.x-dev
# Change to 1 to debug failed tests.
- BLT_PRINT_COMMAND_OUTPUT=0
matrix:
fast_finish: true
include:
# Standard ORCA jobs.
- { name: "Static code analysis", env: ORCA_JOB=STATIC_CODE_ANALYSIS }
# Custom jobs.
- env: DRUPAL_CORE_VERSION=default PHPUNIT_EXCLUDE_GROUP='drupal,requires-vm'
- env: DRUPAL_CORE_VERSION=default PHPUNIT_GROUP='drupal'
- env: DRUPAL_CORE_VERSION=$DRUPAL_CORE_HEAD
allow_failures:
- env: DRUPAL_CORE_VERSION=$DRUPAL_CORE_HEAD
- env: ORCA_JOB=ISOLATED_DEV
- env: ORCA_JOB=INTEGRATED_DEV
- env: ORCA_JOB=CORE_NEXT
before_install:
# Exit build early if only documentation was changed in a Pull Request.
- source ${BLT_DIR}/scripts/travis/exit_early
# Prepare local testing version of blt-project so it can be used by ORCA.
- cp -r subtree-splits/blt-project /tmp/
- composer config --global repositories.blt path /tmp/blt-project
# Install ORCA.
- composer create-project --no-dev acquia/orca ../orca "$ORCA_VERSION"
- ../orca/bin/travis/before_install.sh
install:
- ../orca/bin/travis/install.sh
- ./bin/travis/install.sh
before_script: ../orca/bin/travis/before_script.sh
script:
- ./bin/travis/orca-fix.sh
- ../orca/bin/travis/script.sh
- ./bin/travis/script.sh
before_cache: ../orca/bin/travis/before_cache.sh
after_success: ../orca/bin/travis/after_success.sh
after_failure: ../orca/bin/travis/after_failure.sh
after_script: ../orca/bin/travis/after_script.sh