forked from UNICEFECAR/parenting-app-bebbo-CMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (62 loc) · 1.9 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
language: php
dist: bionic
# 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.3"
env:
global:
- COMPOSER_BIN=$TRAVIS_BUILD_DIR/vendor/bin
- BLT_DIR=$TRAVIS_BUILD_DIR/vendor/acquia/blt
cache:
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
# Cache front end dependencies to dramatically improve build time.
# - "docroot/themes/custom/mytheme/node_modules"
# - "docroot/themes/custom/mytheme/bower_components"
services:
- mysql
addons:
ssh_known_hosts:
- svn-2625.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 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
# - source ${BLT_DIR}/scripts/travis/simulate_deploy
- source ${BLT_DIR}/scripts/travis/deploy_branch
deploy:
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_branch"
skip_cleanup: true
on:
branch: dev
php: 7.3
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_branch"
skip_cleanup: true
on:
branch: main
php: 7.3
- provider: script
script: "${BLT_DIR}/scripts/travis/deploy_tag"
skip_cleanup: true
on:
tags: true
php: 7.3