Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 committed Jan 30, 2020
1 parent 144ef3d commit 7cb7aff
Show file tree
Hide file tree
Showing 7 changed files with 3,171 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor/
/.idea/
/coverage/
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: php

php:
- 7.2

env:
- SYMFONY_VERSION=4.0.*
- SYMFONY_VERSION=4.1.*
- SYMFONY_VERSION=4.2.*
- SYMFONY_VERSION=4.3.*
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=5.0.*
- SYMFONY_VERSION=

matrix:
fast_finish: true

before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

install:
- composer self-update
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
- composer update --prefer-dist --dev --no-interaction $COMPOSER_FLAGS

before_script:
- mkdir -p build/logs

script: vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml --whitelist src tests/

after_success:
- composer global require php-coveralls/php-coveralls
- travis_retry php $HOME/.config/composer/vendor/bin/php-coveralls -v

- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# EntityRelationSetter

[![Build Status](https://travis-ci.org/GollumSF/entity-relation-setter.svg?branch=master)](https://travis-ci.org/GollumSF/entity-relation-setter)
[![Build Status](https://travis-ci.com/GollumSF/entity-relation-setter.svg?branch=master)](https://travis-ci.com/GollumSF/entity-relation-setter)
[![Coverage](https://coveralls.io/repos/github/GollumSF/entity-relation-setter/badge.svg?branch=master)](https://coveralls.io/github/GollumSF/entity-relation-setter)
[![License](https://poser.pugx.org/gollumsf/entity-relation-setter/license)](https://packagist.org/packages/gollumsf/entity-relation-setter)
[![Latest Stable Version](https://poser.pugx.org/gollumsf/entity-relation-setter/v/stable)](https://packagist.org/packages/gollumsf/entity-relation-setter)
[![Latest Unstable Version](https://poser.pugx.org/gollumsf/entity-relation-setter/v/unstable)](https://packagist.org/packages/gollumsf/entity-relation-setter)
[![Discord](https://img.shields.io/discord/671741944149573687?color=purple&label=discord)](https://discord.gg/xMBc5SQ)

Trait for add method cross setter

Expand Down
13 changes: 11 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@
"wiki": "https://github.com/GollumSF/entity-relation-setter/blob/master/README.md"
},
"minimum-stability": "dev",
"require": {},
"require" : {
"php" : ">=7.0"
"php" : ">=7.0",
"doctrine/orm": "*"
},
"autoload" : {
"psr-4" : {
"GollumSF\\EntityRelationSetter\\" : "src/"
}
},
"require-dev": {
"phpunit/phpunit": "8.5.x-dev",
"gollumsf/reflection-property-test": "dev-master"
},
"autoload-dev": {
"psr-4": {
"Test\\GollumSF\\EntityRelationSetter\\" : "tests/"
}
}
}
Loading

0 comments on commit 7cb7aff

Please sign in to comment.