-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (46 loc) · 1.3 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
language: php
cache:
apt: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "vendor"
matrix:
include:
- php: 7.1
env: INSTALL_METHOD=composer
- php: 5.6
env: INSTALL_METHOD=drush_make
# Use newer distribution on Travis CI (Ubuntu 14.04 - Trusty)
dist: trusty
# Currently there is problem with chrome browser on Travis CI docker environment,
# but when we enable "sudo" requirement, non-docker environment is used and problem
# does not appear there.
# Here is related issue: https://github.com/travis-ci/travis-ci/issues/7150
sudo: required
branches:
only:
- master
- develop
mysql:
database: drupal
username: root
encoding: utf8
addons:
artifacts:
region: eu-west-1
paths:
- /tmp/thunder-travis-ci
# The main functionality is divided into different scripts, each is prefixed by a number which
# indicates the execution order
before_install:
- bash -e ./scripts/travis/00-keep-travis-running.sh &
- source ./scripts/travis/01-setup-environment.sh
- bash -x -e ./scripts/travis/02-before-install.sh
- bash -x -e ./scripts/travis/03-test-source-code.sh
install:
- bash -x -e ./scripts/travis/04-install-thunder.sh
before_script:
- bash -x -e ./scripts/travis/05-setup-tests.sh
script:
- bash -x -e ./scripts/travis/06-run-tests.sh