-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
56 lines (45 loc) · 1.31 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
language: php
php:
- 5.4
mysql:
database: drupal
username: root
encoding: utf8
install:
# Create MySQL Database
- mysql -e 'create database drupal;'
# Install Drush
- pear channel-discover pear.drush.org
- pear install drush/drush-5.4.0
- phpenv rehash
# Run composer
- cd ./tests/behat
- composer install
- cd ../../
before_script:
# Install Classic Profile
- cd ../
- mkdir profiles
- mv classic profiles/
- mkdir drupal
- mv profiles drupal/
- cd drupal
- drush make --prepare-install profiles/classic/build-classic.make --yes
- sudo chmod -R 777 sites/all/modules
- drush si classic --sites-subdir=default --db-url=mysql://root:@127.0.0.1/drupal --account-name=admin --account-pass=classic [email protected] --site-name="Drupal Classic Profile" --yes
- drush cc all --yes
- cd ../
# Setup display for selenium
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- sudo drush --root=$PWD/drupal runserver --server=builtin 80 &
- sleep 3
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.25.0.jar
- java -jar selenium-server-standalone-2.25.0.jar -p 4444 &
- sleep 5
script:
- cd drupal/profiles/classic/tests/behat
# behat.yml includes behat.local.yml so it must exist
- touch behat.local.yml
- ./bin/behat