forked from ASU/webspark-drops-drupal7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (49 loc) · 1.48 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
# whitelist
branches:
only:
- master
- 7.x-rc
- travis-ci
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 ./profiles/openasu/tests/behat
- composer install --no-interaction
# - cp behat.template.yml behat.local.yml
- cd /home/travis/build/ASU/webspark-drops-drupal7
# 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.39.0.jar
- java -jar selenium-server-standalone-2.39.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 openasu --db-url=mysql://root:@127.0.0.1/drupal --account-name=admin --account-pass=admin --site-mail=admin@example.com --site-name="Webspark" --yes
- drush runserver --server=builtin 8888 > /dev/null 2>&1 &
- sleep 3
- cd profiles/openasu/tests/behat
script:
- ./bin/behat --config behat.travis.yml
notifications:
email:
- webspark-ci@googlegroups.com