forked from pixelant/pxa_product_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (40 loc) · 1.02 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
language: php
dist: trusty
matrix:
include:
- php: 7.2
env: TYPO3_VERSION=^9
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
sudo: false
before_install:
- composer self-update
- composer --version
before_script:
- phpenv config-rm xdebug.ini
- composer require typo3/minimal=$TYPO3_VERSION
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
echo;
echo "Running PHP codesniffer";
.Build/bin/phpcs --standard=PSR2 --extensions=php Classes/;
.Build/bin/phpcs -n --standard=PSR2 --extensions=php --ignore=*./Tests/*,*./Classes/*,*./.Build/* .;
- >
echo;
echo "Running unit tests";
.Build/bin/phpunit -c Tests/Build/UnitTests.xml;
- >
echo;
echo "Running functional tests";
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
.Build/bin/phpunit -c Tests/Build/FunctionalTests.xml;