Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
language: php

php:
- '7.0'
- '7.1'



addons:
sonarcloud:
organization: kimfml
token:
secure: ••••••••••••••••

dist: xenial
git:
depth: false

env:
- SYMFONY_VERSION="2.0.*" DB=mysql
- SYMFONY_VERSION="dev-master" DB=mysql



- DB=mysql

install: composer update --no-interaction --no-suggest --no-progress

before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS yiitest;'; fi"
- composer require atoum/atoum

script:
#- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage-report.clover --log-junit=test-report.xml
- sonar-scanner




Expand Down
3 changes: 3 additions & 0 deletions config.local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
* $config['databases']['mysql']['username'] = 'root';
* $config['databases']['mysql']['password'] = '';
16 changes: 16 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sonar.projectKey=KimFML_yii2
sonar.organization=kimfml
sonar.tests=tests
sonar.language=php

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=yii2
#sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.
sonar.php.coverage.reportPaths=/home/travis/build/KimFML/yii2/coverage-report.clover
sonar.php.tests.reportPath=/home/travis/build/KimFML/yii2/test-report.xml

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
3 changes: 3 additions & 0 deletions tests/config.local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
* $config['databases']['mysql']['username'] = 'root';
* $config['databases']['mysql']['password'] = '';
3 changes: 3 additions & 0 deletions tests/data/config.local.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php
* $config['databases']['mysql']['username'] = 'root';
* $config['databases']['mysql']['password'] = '';
2 changes: 1 addition & 1 deletion tests/test-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ case $1 in
;;
esac

echo "Done."
echo "Done."