forked from cweagans/composer-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 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
language: php
os: linux
dist: trusty
php:
- '7.2'
- '7.3'
- '7.4'
- nightly
env:
- PATCHES_TEST_SUITE=unit
- PATCHES_TEST_SUITE=acceptance
jobs:
fast_finish: true
allow_failures:
- php: nightly
cache:
directories:
- ./vendor
install:
- composer self-update --no-interaction
- if [ "${PATCHES_TEST_SUITE}" != "lint" ]; then composer install --dev --no-interaction; fi;
script:
- echo "${PATCHES_TEST_SUITE}"
- if [ "${PATCHES_TEST_SUITE}" != "lint" ]; then ./vendor/bin/grumphp run; fi;
- if [ "${PATCHES_TEST_SUITE}" == "lint" ]; then find ./src -name "*.php" -exec php -l {} \;; fi;
- if [ "${TRAVIS_PHP_VERSION}" != "7.3" ] && [ "${PATCHES_TEST_SUITE}" != "lint" ]; then ./vendor/bin/codecept run "${PATCHES_TEST_SUITE}"; fi;
- if [ "${TRAVIS_PHP_VERSION}" == "7.3" ] && [ "${PATCHES_TEST_SUITE}" != "lint" ]; then ./vendor/bin/codecept run "${PATCHES_TEST_SUITE}" --coverage-xml; fi;
after_success:
- if [ -f ./tests/_output/coverage.xml ]; then travis_retry ./vendor/bin/coveralls -v; fi;