forked from czenker/cz_simple_cal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
51 lines (44 loc) · 1.24 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
php:
- 7
env:
- TYPO3_VERSION=^7.6
sudo: false
cache:
directories:
- .composercache
addons:
apt:
packages:
- parallel
before_install:
- composer self-update
- composer --version
- composer config cache-files-dir .composercache
- if [ "$GITHUB_COMPOSER_AUTH" ]; then composer config -g github-oauth.github.com $GITHUB_COMPOSER_AUTH; fi
before_script:
- composer require typo3/cms=$TYPO3_VERSION
script:
- >
echo;
echo "Running phpcs";
chmod +x ./Resources/Private/Scripts/run_code_style_check.sh;
./Resources/Private/Scripts/run_code_style_check.sh
- >
echo;
echo "Running unit tests";
chmod +x ./Resources/Private/Scripts/run_unit_tests.sh;
./Resources/Private/Scripts/run_unit_tests.sh
- >
echo;
echo "Running php lint";
find . -name \*.php ! -path "./.Build/*" | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;
- >
echo;
export typo3DatabaseName="typo3";
export typo3DatabaseHost="localhost";
export typo3DatabaseUsername="root";
export typo3DatabasePassword="";
export typo3InstallToolPassword="klaus";
chmod +x ./Resources/Private/Scripts/run_functional_tests.sh;
./Resources/Private/Scripts/run_functional_tests.sh