-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
44 lines (35 loc) · 945 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
33
34
35
36
37
38
39
40
41
42
43
44
# .travis.yml
sudo: false
language: php
php:
- 7.2
env:
- TYPO3_VERSION=^9
addons:
apt:
packages:
- parallel
install:
- composer require typo3/minimal:${TYPO3_VERSION}
- git checkout composer.json
- export TYPO3_PATH_WEB="$PWD/.Build/web"
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- >
echo;
echo "Unit tests";
.Build/vendor/phpunit/phpunit/phpunit -c Build/phpunit.xml --coverage-clover .Build/clover.xml
- >
echo;
echo "PHP lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
after_script:
- .Build/bin/codacycoverage clover .Build/clover.xml
- ./cc-test-reporter format-coverage -t clover .Build/clover.xml
- ./cc-test-reporter upload-coverage
cache:
directories:
- $HOME/.composer/cache