forked from owncloud-archive/mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (55 loc) · 1.61 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
62
63
64
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- hhvm
env:
global:
- CORE_BRANCH=master
- secure: AaTeRG3kL/LeMOcMgul08EUBM7Kdtrkz9EAGPauKdxXbxggP0j5SxN8ciYxc8CiVni0CYJofW07YjG6tXqhvHeMINHx8Q+5KUUfiLwNrLgl1sMkh7vPR9EA5Z1Y8Nz4N1Qt7zxpqWKPHUsjUNFWxP2TPHEq2FEOGeKbsI7GOYas=
- secure: S5agbWaWSLgbujsVhZB9WkCAM0ris8uh9hPnspYw48bolkMhknJ7JxOWGV4rOcJ52kdOgifFRE9XYi65RFLL8zuaZDBU2zFoXO3fpatziYEiIWnxVrkogw1pnh/FeRnrUld+QDykFyUcfSGdFRw5R5FuZHrxe+Q5bHfiEjh4hlE=
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
before_install:
- composer self-update
- composer install
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh mail $CORE_BRANCH $DB
- cd ../core
- php occ app:enable mail
- npm install -g npm@latest
before_script:
- cd apps/mail
- npm install --deps
script:
# Test lint
- find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \;
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# Test jshint
- npm test
# Create coverage report
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
matrix:
include:
- php: 5.4
env: DB=mysql
- php: 5.4
env: DB=pgsql
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable8"
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable7"
allow_failures:
- php: hhvm
- php: 7
fast_finish: true