-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (45 loc) · 1.05 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
sudo: false
language: php
php:
- 7.2
- 7.3
- 7.4
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
stages:
- check
- test
- coverage
- deploy
jobs:
include:
- stage: check
php: 7.2
script:
- ./vendor/bin/phpcs
- stage: coverage
if: branch = master AND type = push
php: 7.2
env: TEST_COVERAGE=true
before_install:
- phpenv config-rm xdebug.ini
- composer self-update
- composer require --dev --no-update satooshi/php-coveralls
script:
- ./vendor/bin/phpunit -c phpunit.travis.xml --coverage-clover build/logs/clover.xml
after_script:
- ./vendor/bin/coveralls -v
- stage: deploy
if: type = push AND branch = master
script:
- openssl aes-256-cbc -K $encrypted_13cee3189705_key -iv $encrypted_13cee3189705_iv -in deploy-key.enc -out deploy-key -d && chmod 600 deploy-key;
- ./vendor/bin/phing deploy;
before_install:
- composer self-update
install:
- travis_retry composer install --no-interaction --ignore-platform-reqs
script:
- ./vendor/bin/phpunit -c phpunit.travis.xml