-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
41 lines (33 loc) · 1.59 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
dist: jammy
language: php
services: elasticsearch
jdk: openjdk17
php:
- 8.1
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- composer self-update
- echo "extension = apcu.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "apc.enable_cli = '1'" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- wget -O local-php-security-checker https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.4/local-php-security-checker_2.0.4_linux_amd64
- chmod +x local-php-security-checker
- export JAVA_HOME=/usr/local/lib/jvm/openjdk17
- export PATH="$JAVA_HOME/bin:$PATH"
install:
- composer install --no-interaction
before_script:
- sleep 10
script:
- ./local-php-security-checker
- composer qa-check
- composer test-ci
- sonar-scanner
notifications:
email: false
addons:
sonarcloud:
organization: "adshares-github"
token:
secure: "qRve/aNDPVYWrmzm1hTOrODUzr1jAAUKUENQ85N1lV3XwmFwxXJeF3MDPgXw+gK/+Fk2q0bhPcgs1C9fXtQoeE7TG+5od/vjgYGkj1G5sqpcoC0jVNTYIa9VvHJUik/CxnvZD+y8udbVuK4mE6ozawcXrWebnQai1ng2hkAY9a2sVmgU7jxPjMh26g8lQwky/LgHE93Ln2emnLnEwHrHDLh9a3VL5RrhsAI15Mxc/xJ62kPfFvmcCbCfd5eDhPMrCJ5B1xCItLBBuFz4CBOMmKg6TGBT96JprOYOHY+iRViGO4ga4VlJ38GzzA+WbHweIUf1GajYnSHVpok9bDahlltG3h1W2+AYX57dm47J41w0DRgGq3Etkbahq2ohPeLIbmPk1YPmObVK/zRsBx3gVG948Y8F3eGM+IWzxXtMG5vyg0ku8uaY+1z0jpfzYHWLoOuLEprIReBXIT8itpASIBuF5RIHaz/fQZNJvnHXWAAAYNrb0UEKstoGlN1rBWDLGf0PGe9EqiUgb7Tp9D60tSHhEEj2tGkx9mtTmVeHgmsrc/In8DbnwPkB91xFjJ7Xc93P1YNINmT3MKogilFHgVjkaZthPynq0MCr2uviJFF/cLjQSbyqazB4OU3EDVyfIeKJXtHF2Mitax3lBUsYaTtDETQcUm6z4N1ii8Brtl8="