forked from meolu/walle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 991 Bytes
/
.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
language: php
php:
- 5.5
- 5.6
mysql:
database: travis_ci_drupal_module_example_test
username: root
encoding: utf8
install:
- travis_retry composer self-update && composer update nothing && composer --version
- travis_retry composer global require fxp/composer-asset-plugin --no-plugins
- composer install --prefer-source --no-interaction --dev
- wget http://codeception.com/codecept.phar -O vendor/bin/codecept && chmod +x vendor/bin/codecept
- echo 'xdebug.max_nesting_level=600' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS walle DEFAULT CHARSET utf8 COLLATE utf8_general_ci;'
- ./yii migrate/up --interactive=0
- cd tests && ../vendor/bin/codecept build
script:
- find ../ -path '../vendor' -prune -o -type f -iname "*.php" -print0 | xargs -0 -n1 php -l
- ../vendor/bin/codecept run
matrix:
fast_finish: true
notifications:
on_success: never
on_failure: always