-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
62 lines (46 loc) · 1.86 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
language: php
php:
- 5.3
mysql:
database: drupal
username: root
encoding: utf8
before_install:
- sudo apt-get update > /dev/null
install:
# install php packages required for running a web server from drush on php 5.3
- sudo apt-get install -y --force-yes php5-cgi php5-mysql
# add composer's global bin directory to the path
# see: https://github.com/drush-ops/drush#install---composer
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# install drush globally
- composer global require drush/drush:6.*
before_script:
# create new site, stubbing sendmail path with true to prevent delivery errors and manually resolving drush path
- mysql -e 'create database drupal'
- drush make profiles/drupal-js/drupal-js.profile .
- sudo chmod -R 777 sites/all/modules
- drush si --db-url="mysql://root:@127.0.0.1/drupal" --account-name="admin" --account-pass="REST@2014" --site-mail="[email protected]" --site-name="drupal-js" --yes
- drush en rest_server --yes
# enable a services endpoint with the basics in place for testing
- git clone http://git.drupal.org/sandbox/jbeuckm/2217233.git sites/all/modules/services_test_endpoint
- cd sites/all/modules/services_test_endpoint
- git checkout -b working 4438c10e4b9f32f48cf837daa1afad1f4339d441
- cd ../../../..
- drush en services_test_endpoint --yes
- drush cc all --yes
- drush pm-list
- git clone http://git.drupal.org/sandbox/jbeuckm/2229285.git sites/all/modules/test_content_type
- drush en test_content_type --yes
# start a web server on port 8080, run in the background; wait for initialization
- drush runserver 127.0.0.1:8080 &
- until netstat -an 2>/dev/null | grep '8080.*LISTEN'; do true; done
# prepare the node.js drupal client lib
- cp test/config.json.travis test/config.json
- sudo chmod 777 .
- npm install
script:
- npm test
branches:
only:
- master