From 0fd983b422ecf58feb38525017d60e8f5c076268 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Wed, 15 Feb 2017 18:16:04 -0800 Subject: [PATCH] HSDO-716 Added Travis --- .travis.yml | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1b23951 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,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="" + - 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