forked from MohsinQK/cf_google_authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 957 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
45
language: php
matrix:
fast_finish: true
include:
- name: 'PHP 7.1 | TYPO3 CMS v8'
php: '7.1'
env: TYPO3_VERSION=^8
- name: 'PHP 7.2 | TYPO3 CMS v9'
php: '7.2'
env: TYPO3_VERSION=^9
sudo: false
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer --version
before_script:
- composer require typo3/minimal=$TYPO3_VERSION
- composer require typo3/cms-recordlist=$TYPO3_VERSION
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running unit tests";
.Build/bin/phpunit -c $PWD/Tests/Build/UnitTests.xml
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
after_success:
- bash <(curl -s https://codecov.io/bash) -f $PWD/Tests/Reports/coverage.xml