Skip to content

Commit 5b46e7f

Browse files
authored
Merge pull request #11 from expertcoder/travis-ci
Travis ci
2 parents f164cb7 + e6c602b commit 5b46e7f

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.travis.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
11
language: php
2+
cache:
3+
directories:
4+
- $HOME/.composer/cache/files
5+
- $HOME/symfony-bridge/.phpunit
6+
env:
7+
global:
8+
- PHPUNIT_FLAGS=""
9+
- SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit"
10+
11+
matrix:
12+
fast_finish: true
13+
include:
14+
# Minimum supported dependencies with the latest and oldest PHP version
15+
- php: 7.2
16+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
17+
- php: 5.5
18+
env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest" SYMFONY_DEPRECATIONS_HELPER="weak_vendors"
19+
20+
# Test the latest stable release
21+
- php: 5.5
22+
- php: 5.6
23+
- php: 7.0
24+
- php: 7.1
25+
- php: 7.2
26+
env: COVERAGE=true PHPUNIT_FLAGS="-v"
27+
28+
- php: 7.1
29+
env: DEPENDENCIES="dunglas/symfony-lock:^2"
30+
- php: 7.1
31+
env: DEPENDENCIES="dunglas/symfony-lock:^3"
32+
- php: 7.1
33+
env: DEPENDENCIES="dunglas/symfony-lock:^4"
34+
35+
# Latest commit to master
36+
- php: 7.2
37+
env: STABILITY="dev"
38+
39+
before_install:
40+
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
41+
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
42+
- composer require --no-update symfony/phpunit-bridge:^4.0 ${DEPENDENCIES}
43+
44+
install:
45+
# To be removed when this issue will be resolved: https://github.com/composer/composer/issues/5355
46+
- if [[ "$COMPOSER_FLAGS" == *"--prefer-lowest"* ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --quiet; fi
47+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-interaction
48+
- ./vendor/bin/simple-phpunit install
49+
50+
script:
51+
- composer validate --strict --no-check-lock
52+
- ./vendor/bin/simple-phpunit $PHPUNIT_FLAGS

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SwiftmailerSendGridBundle
22

3+
[![Latest Version](https://img.shields.io/github/release/expertcoder/SwiftmailerSendGridBundle.svg?style=flat-square)](https://github.com/expertcoder/SwiftmailerSendGridBundle/releases)
4+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5+
[![Build Status](https://img.shields.io/travis/expertcoder/SwiftmailerSendGridBundle.svg?style=flat-square)](https://travis-ci.org/expertcoder/SwiftmailerSendGridBundle)
6+
37
Symfony 2/3 bundle for SendGrid. Utilizes the SendGrid PHP Library https://github.com/sendgrid/sendgrid-php
48
to make it compatiable with SwiftMailer.
59

0 commit comments

Comments
 (0)