-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
51 lines (40 loc) · 1.21 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
sudo: false
language: php
mysql:
database: drupal
username: root
encoding: utf8
php:
- 5.6
install:
# Set up Composer.
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- composer self-update
# Get Drush 7.x.
- composer global require drush/drush:7.*
before_script:
# Composer for cw_tool.
- composer self-update
- composer install
# Drupal 7.x installation.
- mysql -e 'create database drupal'
- cd ..
- drush dl drupal -y
- cd drupal-*
- drush si minimal --db-url=mysql://root:@localhost/drupal -y
# Set up modules.
- ln -s /home/travis/build/cameronandwilding/CWTool ./sites/all/modules/cwtool
- drush dl ctools drupal_psr_cache drupal_psr3 entity entityreference references features strongarm -y
- composer install -d sites/all/modules/drupal_psr3
- composer install -d sites/all/modules/drupal_psr_cache
- drush en cw_tool simpletest -y
# Return to cw_tool folder.
- cd /home/travis/build/cameronandwilding/CWTool
script:
# Unit tests.
- phpunit -c phpunit.xml
# Drupal web tests.
- cd ../drupal-*/
# Run web server.
- drush runserver 127.0.0.1:8080 &
- php ./scripts/run-tests.sh --verbose --php /home/travis/.phpenv/shims/php --url http://127.0.0.1:8080 CW