Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit a589f86

Browse files
Merge pull request #95 from alexislefebvre/fix-travis-ci
Fix Travis CI
2 parents 0a21bf6 + 6f0f772 commit a589f86

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.travis.yml

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
dist: xenial
1+
dist: bionic
22

3-
sudo: required
3+
os: linux
44

55
language: php
66

@@ -17,11 +17,18 @@ cache:
1717
php:
1818
- 7.2
1919

20+
env:
21+
- CAN_FAIL=false
22+
2023
stages:
2124
- analysis
2225
- test
2326

2427
jobs:
28+
allow_failures:
29+
env:
30+
- SYMFONY_VERSION="^5.1"
31+
- CAN_FAIL=true
2532
include:
2633
- stage: analysis
2734
name: "php-cs-fixer"
@@ -77,10 +84,12 @@ jobs:
7784
- php ./vendor/bin/test-reporter
7885
- travis_retry php vendor/bin/coveralls -v --config .coveralls.yml
7986

80-
- name: "PHP 7.4 / Symfony 5.1"
87+
- stage: tests allowed to fail
88+
name: "PHP 7.4 / Symfony 5.1"
8189
php: 7.4
8290
env:
8391
- SYMFONY_VERSION="^5.1"
92+
- CAN_FAIL=true
8493
before_install:
8594
- phpenv config-rm xdebug.ini
8695
- echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
@@ -93,7 +102,3 @@ jobs:
93102
- make phpspec
94103
- php ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
95104
- make behat
96-
97-
allow_failures:
98-
- php: 7.4
99-
env: SYMFONY_VERSION=^5.1

0 commit comments

Comments
 (0)