forked from phase2/grunt-drupal-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.28 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
language: php
php:
- 5.4
- 5.5
- 5.6
- 7
sudo: false
env:
- GDT_DRUPAL_CORE="7" GDT_TEST_URL="http://127.0.0.1:8080/misc/drupal.js"
- GDT_DRUPAL_CORE="8" GDT_TEST_URL="http://127.0.0.1:8080/core/misc/drupal.js"
matrix:
exclude:
- php: 5.4
env: GDT_DRUPAL_CORE="8" GDT_TEST_URL="http://127.0.0.1:8080/core/misc/drupal.js"
before_install:
- composer self-update
- echo "sendmail_path='true'" >> `php --ini | grep "Loaded Configuration" | awk '{print $4}'`
install:
- npm install -g grunt-cli
- npm install -g mocha
- ls -lRa
script:
- echo "Code checkout disk usage"; du -chs .
- ./test/create_working_copy.sh
- cd test/working_copy/
- echo "Working copy disk usage"; du -chs .
- grunt help
- grunt --quiet --timer
- echo "Fully built disk usage"; du -chs .
- grunt drush:liteinstall --quiet
- grunt serve:test >/dev/null &
- until curl -I -XGET -s $GDT_TEST_URL 2>/dev/null | egrep -q '^HTTP.*200'; do sleep 0.5; done
- grunt test
- sleep 1; while (ps aux | grep '[b]ehat' > /dev/null); do sleep 1; done
- for pid in `ps aux | grep drush | grep runserver | awk '{print $2}'`; do echo "Stopping drush pid $pid"; kill -SIGINT $pid; done;
- mocha node_modules/grunt-drupal-tasks/test/build.js
- mocha node_modules/grunt-drupal-tasks/test/library.js