-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 944 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
sudo: false
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.2
env: COVERAGE=1
env:
global:
- secure: S8QheEMVpSRsPPIhYQZ4tUCTbxpM7csZ0GydJaPY8p/FAEnZLiH6xcsiTGKOljva5HDelCdBvunaWtUO/+CdKIgsdbQGbqc1aWmG6gr+ShQk4X3KzeAA91AFmkJOR6Jv69lUTm6Uo9AKs1JtuVZsOa1aoOmfApohqFuXsRBNXlg=
jdk:
- oraclejdk8
addons:
sonarcloud:
organisation: cps-it
cache:
directories:
- $HOME/.composer/cache
- $HOME/.sonar/cache
before_script:
- composer install --no-progress
script:
- >
if [[ "$COVERAGE" != "1" ]]; then
echo;
echo "Running unit tests";
.build/bin/phpunit --colors tests/Unit/
fi
- >
if [[ "$COVERAGE" == "1" ]]; then
echo;
echo "Running unit tests";
.build/bin/phpunit --colors -c tests/Build/UnitTests.xml tests/Unit/
rm -rf .build/vendor/ .build/bin/
sonar-scanner -Dproject.settings=sonar-project.properties
fi