-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (50 loc) · 1.85 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
language: php
php:
- 5.4
mysql:
database: drupal
username: root
encoding: utf8
install:
- sudo apt-get update > /dev/null
- "mysql -e 'create database drupal;'"
# Install latest Drush 6.
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer global require --no-interaction drush/drush:6.*
# Build Behat dependencies
- cd ./sites/all/modules/custom/pll_tests/behat
- composer install --no-interaction
# Fix for Call to a member function isVisible() on a non-object https://drupal.org/node/2262703
- cd vendor/drupal/drupal-extension
- wget https://drupal.org/files/issues/call_isVisible_if_result_not_null.patch
- patch -p1 < call_isVisible_if_result_not_null.patch
# - cp behat.template.yml behat.local.yml
- cd /home/travis/build/agold2/pll-drupal
# Build Codebase
- mkdir private_files
# Setup files
- sudo chmod -R 777 sites/all
# Setup display for Selenium
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 5
# Get Selenium
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.37.0.jar
- java -jar selenium-server-standalone-2.37.0.jar > /dev/null 2>&1 &
- sleep 5
# Disable sendmail
- echo sendmail_path=`which true` >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
before_script:
# Do the site install
- drush si openatrium --db-url=mysql://root:@127.0.0.1/drupal --account-name=admin --account-pass=admin [email protected] --site-name="Professional Learning Library" --yes
- drush runserver --server=builtin 8888 > /dev/null 2>&1 &
- drush en pll_oa_layouts -y
- drush vset pathauto_node_oa_space_pattern "space/[node:title]"
- drush vset theme_default pll_bootstrap
- sleep 3
- cd sites/all/modules/custom/pll_tests/behat
script:
- ./bin/behat --tags='@pll' --config behat.travis.yml
notifications:
email: