blob: 3b0ff29d88dbb70f9794692906297d10b5088664 (
plain)
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
65
66
67
68
69
70
71
72
73
74
|
sudo: false
language: php
php:
- 5.4
- 5.5
- 5.6
- 7
- hhvm
env:
global:
- CORE_BRANCH=master
- TEST_JS=FALSE
- secure: AaTeRG3kL/LeMOcMgul08EUBM7Kdtrkz9EAGPauKdxXbxggP0j5SxN8ciYxc8CiVni0CYJofW07YjG6tXqhvHeMINHx8Q+5KUUfiLwNrLgl1sMkh7vPR9EA5Z1Y8Nz4N1Qt7zxpqWKPHUsjUNFWxP2TPHEq2FEOGeKbsI7GOYas=
- secure: S5agbWaWSLgbujsVhZB9WkCAM0ris8uh9hPnspYw48bolkMhknJ7JxOWGV4rOcJ52kdOgifFRE9XYi65RFLL8zuaZDBU2zFoXO3fpatziYEiIWnxVrkogw1pnh/FeRnrUld+QDykFyUcfSGdFRw5R5FuZHrxe+Q5bHfiEjh4hlE=
matrix:
- DB=sqlite
branches:
only:
- master
- /^stable\d+(\.\d+)?$/
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.npm
- $HOME/.cache/bower
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
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install -g npm@latest; fi"
before_script:
- cd apps/mail
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install --deps; fi"
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm run-script bower_deps; fi"
script:
# Test lint
- find . -name \*.php -not -path './vendor/*' -exec php -l "{}" \;
# Run js unit tests
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then grunt; fi"
# Run phpunit tests
- cd tests
- phpunit --configuration phpunit.xml
# 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 TEST_JS=TRUE"
- php: 5.4
env: DB=pgsql
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable8"
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable8.1"
- php: 5.4
env: "DB=mysql CORE_BRANCH=stable7"
allow_failures:
- php: hhvm
- php: 7
fast_finish: true
|