-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis-saucelabs.yml
41 lines (39 loc) · 1.5 KB
/
.travis-saucelabs.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
language: php
php:
- 7.2
env:
global:
- SELENIUM_SERVER="ondemand.saucelabs.com"
- SCREENSHOTS_PATH=""
- APP_HOST="fatturatutto.it"
matrix:
# Test should be runned in sequence and not in parallel because there are some security checks (about sessions management) on the login feature of the webapp
# see: https://blog.travis-ci.com/2014-07-18-per-repository-concurrency-setting/
- BROWSER="chrome"
- BROWSER="firefox"
# - BROWSER="safari" # php-webdriver doesn't support the w3c protocol used by Safari
before_script:
- php ./script/before_script.php
# - composer self-update
- composer require --dev jakub-onderka/php-parallel-lint
- composer require --dev jakub-onderka/php-console-highlighter
- composer install --prefer-source --no-suggest --no-progress --no-interaction
- vendor/bin/parallel-lint --exclude vendor .
- vendor/bin/phpstan -V
- vendor/bin/phpstan analyse src --no-interaction --no-progress --level 0
script: phpunit
addons:
sauce_connect: true
notifications:
email:
recipients:
- ${EMAIL_BORGO}
on_success: change # default: change
on_failure: always # default: always
webhooks:
urls:
- http://217.133.38.27:81/notification?secret=${IUBAR_WH_TOKEN}
- https://webhooks.gitter.im/e/${GITTER_IM_TOKEN}
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always