Skip to content

Commit 2006269

Browse files
author
Daniel Gomes
committed
some tweaks to travisci
1 parent 2339222 commit 2006269

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.travis.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
dist: trusty
12
language: php
23

3-
dist: trusty
4+
# This triggers builds to run on the new TravisCI infrastructure.
5+
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
6+
sudo: false
47

58
php:
69
- 7.1
@@ -11,15 +14,18 @@ matrix:
1114

1215
env:
1316
global:
14-
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
17+
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
1518

1619
before_script:
17-
- composer install
20+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
1821

1922
addons:
2023
sonarcloud:
2124
organization: "dcsg-github"
2225

2326
script:
27+
- vendor/bin/phpcs --standard=psr2 src/
2428
- vendor/bin/phpunit --coverage-clover=/tmp/coverage.xml --log-junit=/tmp/test-results.xml
29+
30+
after_script:
2531
- sonar-scanner

0 commit comments

Comments
 (0)