Try conditional build with Travis
This commit is contained in:
parent
69b06a25e8
commit
f14058f29e
37
.travis.yml
37
.travis.yml
@ -6,8 +6,6 @@
|
|||||||
os: linux
|
os: linux
|
||||||
dist: xenial
|
dist: xenial
|
||||||
#dist: bionic
|
#dist: bionic
|
||||||
# Deprecated: The key sudo has no effect anymore.
|
|
||||||
#sudo: required
|
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
@ -33,10 +31,10 @@ addons:
|
|||||||
# We need pgloader for import mysql database into pgsql
|
# We need pgloader for import mysql database into pgsql
|
||||||
- pgloader
|
- pgloader
|
||||||
|
|
||||||
php:
|
#php:
|
||||||
- '5.6'
|
#- '5.6'
|
||||||
- '7.4'
|
#- '7.4'
|
||||||
- nightly
|
#- nightly
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
@ -49,8 +47,6 @@ env:
|
|||||||
- DB=postgresql
|
- DB=postgresql
|
||||||
# See https://docs.travis-ci.com/user/languages/php/#Apache-%2B-PHP
|
# See https://docs.travis-ci.com/user/languages/php/#Apache-%2B-PHP
|
||||||
#- WS=apache
|
#- WS=apache
|
||||||
# See https://github.com/DracoBlue/travis-ci-nginx-php-fpm-test
|
|
||||||
#- WS=nginx
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
@ -58,24 +54,17 @@ jobs:
|
|||||||
- php: nightly
|
- php: nightly
|
||||||
# We exclude some combinations not usefull to save Travis CPU
|
# We exclude some combinations not usefull to save Travis CPU
|
||||||
exclude:
|
exclude:
|
||||||
- php: '7.0'
|
|
||||||
env: DB=mysql
|
|
||||||
- php: '7.1'
|
|
||||||
env: DB=mysql
|
|
||||||
- php: '7.2'
|
|
||||||
env: DB=mysql
|
|
||||||
- php: '7.3'
|
|
||||||
env: DB=mysql
|
|
||||||
- php: '7.0'
|
|
||||||
env: DB=postgresql
|
|
||||||
- php: '7.1'
|
|
||||||
env: DB=postgresql
|
|
||||||
- php: '7.2'
|
|
||||||
env: DB=postgresql
|
|
||||||
- php: '7.3'
|
|
||||||
env: DB=postgresql
|
|
||||||
- php: nightly
|
- php: nightly
|
||||||
env: DB=postgresql
|
env: DB=postgresql
|
||||||
|
include:
|
||||||
|
- if: type = pull_request
|
||||||
|
php: '7.4'
|
||||||
|
- if: type = push
|
||||||
|
php:
|
||||||
|
- '5.6'
|
||||||
|
- '7.4'
|
||||||
|
- if: type = push AND branch = develop
|
||||||
|
php: nightly
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user