-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
87 lines (75 loc) · 2.13 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
85
86
87
sudo: true
language: php
dist: xenial
# Adjust the version of PHP to match your production environment.
# Making this version number greater than the production environment can have unintended consequences
# including a non-functional prod environment.
php:
- 7.1
matrix:
fast_finish: true
env:
global:
- COMPOSER_BIN=$TRAVIS_BUILD_DIR/vendor/bin
- BLT_DIR=$TRAVIS_BUILD_DIR/vendor/acquia/blt
- BUILD_DIR=$TRAVIS_BUILD_DIR
jdk:
- oraclejdk8
cache:
bundler: true
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.npm"
- "$HOME/.nvm"
- ".rules"
# Cache front end dependencies to dramatically improve build time.
# - "docroot/themes/custom/mytheme/node_modules"
# - "docroot/themes/custom/mytheme/bower_components"
services:
- mysql
- xvfb
addons:
ssh_known_hosts:
# - svn-4786.devcloud.hosting.acquia.com
chrome: stable
# @see https://docs.travis-ci.com/user/notifications
notifications:
# - hipchat: [api token]@[room id or name]
# - slack: '<account>:<token>#[channel]'
before_install:
# Disable xdebug.
- phpenv config-rm xdebug.ini
- composer self-update
- composer validate --no-check-all --ansi
- composer install
# Exit build early if only documentation was changed in a Pull Request.
- source ${BLT_DIR}/scripts/travis/exit_early
install:
- source ${BLT_DIR}/scripts/travis/setup_environment
- source ${BLT_DIR}/scripts/travis/setup_project
script:
# Uncomment these lines to test database updates using live content.
# - blt drupal:sync:default:site
- source ${BLT_DIR}/scripts/travis/run_tests
# The version below MUST match the php version indicated at the top of this file, otherwise the artifact won't build.
deploy:
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_branch"
skip_cleanup: true
on:
branch: develop
php: 7.1
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_branch"
skip_cleanup: true
on:
branch: master
php: 7.1
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_tag"
skip_cleanup: true
on:
tags: true
php: 7.1