This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
108 lines (80 loc) · 2.25 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
language: php
dist: trusty
sudo: required
env:
- INSTALL_PROFILE=1
BEHAT_TAG="api"
CODE_REVIEW=0
SIMPLETEST=1
- INSTALL_PROFILE=1
BEHAT_TAG="javascript"
CODE_REVIEW=0
SIMPLETEST=0
- INSTALL_PROFILE=0
BEHAT_TAG=
CODE_REVIEW=1
SIMPLETEST=0
php:
- 7.0
- 7.1
# - 7.2
# - nightly
matrix:
fast_finish: true
allow_failures:
- php: 7.2
- php: nightly
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- date
- sudo apt-get update > /dev/null
- composer self-update
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
- nvm install 6.12 > /dev/null
install:
- date
# Install LAMP stack.
- $TRAVIS_BUILD_DIR/ci/bin/install_lamp.sh
# Install drush.
- $TRAVIS_BUILD_DIR/ci/bin/install_drush.sh
# Install Coder for code standard reviews.
- $TRAVIS_BUILD_DIR/ci/bin/install_coder.sh
# Install Apache Solr, pass the name of the SOLR core.
- $TRAVIS_BUILD_DIR/ci/bin/install_solr.sh capacity4more
# Install Tika, pass the desired version number.
- $TRAVIS_BUILD_DIR/ci/bin/install_tika.sh "1.17"
# Configure Behat + Install dependencies.
- $TRAVIS_BUILD_DIR/ci/bin/install_behat.sh
# Run headless browser environment, only needed for javascript behat tests.
- $TRAVIS_BUILD_DIR/ci/bin/install_browser.sh
# Install grunt & gulp & bower
- $TRAVIS_BUILD_DIR/ci/bin/install_taskrunners.sh
# Install capacity4more profile.
- $TRAVIS_BUILD_DIR/ci/bin/install_drupal.sh
before_script:
- date
# Index content in Solr.
- $TRAVIS_BUILD_DIR/ci/bin/index_drupal.sh
script:
- date
# Run behat tests, different run based on the environment setting.
- $TRAVIS_BUILD_DIR/ci/bin/run_behat.sh
# Run Code Style validation.
- $TRAVIS_BUILD_DIR/ci/bin/run_coder.sh
after_script:
- date
after_failure:
- date
- echo " =========== /var/log/apache2/error.log ============"
- sudo cat $TRAVIS_BUILD_DIR/apache-error.log
- echo " =========== /var/log/apache2/access.log ============"
- sudo cat $TRAVIS_BUILD_DIR/apache-access.log
# Zip dumps and mail
- $TRAVIS_BUILD_DIR/ci/bin/report_behat.sh
# Output watchdog entries (errors).
- $TRAVIS_BUILD_DIR/ci/bin/report_watchdog.sh
notifications:
slack: amplexor:7ssq8h2xLhkDGyJCw6rtmfOY