-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (33 loc) · 1.16 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
language: php
php:
- 5.5
- 5.6
- 7.0
sudo: false
env:
- SIMPLETEST_DB=sqlite://tmp/site.sqlite
before_install:
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
- composer --verbose self-update
- composer --version
install:
- composer --verbose install
script:
# Test stable release
- cd $TRAVIS_BUILD_DIR/web
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
- ./../vendor/bin/phpunit -c core --exclude-group Composer
- ./../vendor/bin/drush
- ./../vendor/bin/console
# Test dev release
- cd $TRAVIS_BUILD_DIR
- composer --verbose require --no-update drupal/core:8.0.x-dev
- composer --verbose update
- cd $TRAVIS_BUILD_DIR/web
- ./../vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
# Skip core/tests/Drupal/Tests/ComposerIntegrationTest.php because web/ has no composer.json
- ./../vendor/bin/phpunit -c core --exclude-group Composer
- ./../vendor/bin/drush
- ./../vendor/bin/console