forked from Drupalcz/drupalcz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
86 lines (75 loc) · 2.09 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
# Note that the example .travis.yml file for child projects lives in /install.
sudo: true
language: php
dist: trusty
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"
- "vendor"
# Cache front end dependecies to dramatically improve build time.
# - "docroot/themes/custom/mytheme/node_modules"
# - "docroot/themes/custom/mytheme/bower_components"
addons:
ssh_known_hosts:
- svn-1745.prod.hosting.acquia.com
chrome: stable
# @see https://docs.travis-ci.com/user/notifications
notifications:
- slack:
rooms:
- drupalcz:7SUVOYlvaxuqA7PGJ5xu8Afs#dcz-web
before_install:
# Refs SSH keys on free Travis.
- openssl aes-256-cbc -K $encrypted_76cf46cb768e_key -iv $encrypted_76cf46cb768e_iv -in .travis/dcz_travis_ssh_key.enc -out $HOME/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 $HOME/deploy_rsa
- ssh-add $HOME/deploy_rsa
# 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:
# Run customized script instead.
#- source ${BLT_DIR}/scripts/travis/run_tests
- source ${TRAVIS_BUILD_DIR}/blt/scripts/run_tests
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