forked from trikoder/oauth2-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (29 loc) · 926 Bytes
/
.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
sudo: required
language: bash
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
# PHP 7.2
- PHP_VERSION=7.2 SYMFONY_VERSION=3.4.0
- PHP_VERSION=7.2 SYMFONY_VERSION=4.1.0
- PHP_VERSION=7.2 SYMFONY_VERSION=4.2.0
# PHP 7.3
- PHP_VERSION=7.3 SYMFONY_VERSION=3.4.0
- PHP_VERSION=7.3 SYMFONY_VERSION=4.1.0
- PHP_VERSION=7.3 SYMFONY_VERSION=4.2.0
install:
- dev/bin/docker-compose build --build-arg PHP_VERSION=${PHP_VERSION} php
before_script:
- dev/bin/php composer require symfony/symfony:~${SYMFONY_VERSION} --ansi --no-update
- dev/bin/php composer install --ansi --prefer-dist
script:
- dev/bin/php composer test -- --colors=always --coverage-clover=coverage.xml --debug
- dev/bin/php composer lint -- --ansi --diff --dry-run --using-cache=no --verbose
after_script:
- dev/bin/docker-compose down --volumes
after_success:
- bash <(curl -s https://codecov.io/bash)