forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
84 lines (68 loc) · 2.5 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
---
language: php
os: linux
version: ~> 1.0
php: "7.3"
addons:
chrome: stable
cache:
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.rvm"
- "${TMPDIR:-/tmp}/phpstan/cache"
services:
- mysql
env:
global:
# ORCA configuration.
- ORCA_SUT_NAME=acquia/blt
- ORCA_SUT_BRANCH=11.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
jobs:
fast_finish: true
include:
# Standard ORCA jobs.
- { name: "Static code analysis", env: ORCA_JOB=STATIC_CODE_ANALYSIS }
- { name: "Deprecated code scan", env: ORCA_JOB=DEPRECATED_CODE_SCAN }
- { name: "Isolated test w/ recommended package versions", env: ORCA_JOB=ISOLATED_RECOMMENDED }
- { name: "Integrated test w/ recommended package versions", env: ORCA_JOB=INTEGRATED_RECOMMENDED }
- { name: "Isolated test w/ dev package versions", env: ORCA_JOB=ISOLATED_DEV }
- { name: "Integrated test w/ dev package versions", env: ORCA_JOB=INTEGRATED_DEV }
- { name: "Integrated test w/ dev package versions & next minor dev version of Drupal core", env: ORCA_JOB=CORE_NEXT }
# 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