-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
94 lines (84 loc) · 2.68 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
# The stanford_travisci_scripts repository contains external scripts
# used here to configure server and build a self-service site.
# https://github.com/SU-SWS/stanford_travisci_scripts
# PRODUCT_NAME:
# Leave blank to install a self-service site.
# Or enter the product you would like to build.
# If installing a product, you will need add the Environment Variable
# ACCESS_TOKEN, to the settings for this repository at travis-ci.org.
# The toggle "Display value in build log" should be off before clicking Add.
# Options include
# - jumpstart
# - jumpstart-plus
# - jumpstart-lab
# - jumpstart-academic
# - jumpstart-engineering
#
# ENABLE_MODULES:
# Enter as a space separated string, modules and submodules that you
# would like to enable after the installation profile has run. Useful
# for adding additional items.
# Example:
# stanford_gallery nobots
#
# DISABLE_MODULES:
# Enter as a space separated string, modules you would like disabled after the
# installation profile has run.
# Example:
# webauth webauth_extras
#
# DEPLOYER_BRANCH:
# Leave blank to use the default stanford-jumpstart-deployer branch.
# Example:
# basic-1234
#
# DRUPAL_PROFILE_BRANCH:
# Leave blank to use the default Stanford-Drupal-Profile branch.
#
# CLICKY_BRANCH:
# Leave blank to use the default linky_clicky branch.
# Example:
# 4.x
#
# SCRIPTS_BRANCH:
# Leave blank to use the default stanford_travisci_scripts branch.
# Example:
# HSDO-709-landing-page
env:
global:
# - PRODUCT_NAME=""
- ENABLE_MODULES="stanford_image"
- DISABLE_MODULES="webauth"
# - DEPLOYER_BRANCH=""
# - DRUPAL_PROFILE_BRANCH=""
# - CLICKY_BRANCH=""
# - SCRIPTS_BRANCH=""
language: php
php:
- '5.6'
sudo: required
cache:
directories:
- $HOME/.cache
- $HOME/.composer/cache
- $HOME/.drush/cache
mysql:
database: drupal
username: root
encoding: utf8
before_install:
# download external repository with Stanford Travis CI scripts
- if [ ! -z $SCRIPTS_BRANCH ]; then SCRIPTS_BRANCH="-b $SCRIPTS_BRANCH"; fi
- git clone $SCRIPTS_BRANCH https://github.com/SU-SWS/stanford_travisci_scripts.git $HOME/stanford_travisci_scripts
- chmod +x $HOME/stanford_travisci_scripts/bin/*.sh
# install composer packages
- $HOME/stanford_travisci_scripts/bin/before_install.sh
install:
# install self-service site, disable webauth module, start webserver and selenium webdriver
- $HOME/stanford_travisci_scripts/bin/install.sh
before_script:
# download linky_clicky, grab related tests, and start xvfb virtual display
- $HOME/stanford_travisci_scripts/bin/before_script.sh
script:
# make sure shell can find drush and run behat tests here, so Travis CI reports accurate results
- $HOME/stanford_travisci_scripts/bin/script.sh