forked from concretecms/concretecms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
70 lines (62 loc) · 1.56 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
65
66
67
68
69
70
dist: trusty
language: php
sudo: false
php:
- 5.5
- 5.6
- 7.0
- 7.2
- 7.3
- nightly
env:
global:
- COMPOSER_DISABLE_XDEBUG_WARN=1
- PREFER_LOWEST=""
- DO_PHPUNIT=1
- DO_CS_PHP=0
- DO_CS_JS=0
- DO_BUILDASSETS=0
matrix:
fast_finish: true
include:
- php: 7.1
env:
- DO_PHPUNIT=2
- php: 7.1
env:
- DO_CS_PHP=1
- DO_PHPUNIT=0
- php: 7.1
env:
- PREFER_LOWEST="--prefer-lowest"
- language: node_js
dist: trusty
node_js: lts/*
env:
- DO_PHPUNIT=0
- DO_CS_JS=1
- DO_BUILDASSETS=1
allow_failures:
- php: nightly
before_script:
- if test $DO_CS_JS -ne 0 || test $DO_BUILDASSETS -ne 0; then ./.travis/setup-build.sh; fi
- if test $DO_PHPUNIT -ne 0 || test $DO_CS_PHP -ne 0; then ./.travis/composer-deps.sh; fi
script:
- if test $DO_CS_PHP -ne 0; then echo 'Testing PHP coding style'; composer phpcs; fi
- if test $DO_CS_JS -ne 0; then echo 'Testing JS coding style'; pushd build && grunt js:check && popd; fi
- if test $DO_PHPUNIT -eq 1; then echo 'Running tests'; composer test; fi
- if test $DO_PHPUNIT -gt 1; then echo 'Running tests (with coverage)'; phpdbg -qrr ./concrete/vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.clover; fi
- if test $DO_BUILDASSETS -ne 0; then ./.travis/rebuild-assets.sh; fi
cache:
yarn: true
directories:
- "$HOME/.composer/cache"
- build/node_modules
notifications:
email: false
after_script:
- |
if test $DO_PHPUNIT -gt 1; then
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover coverage.clover
fi