Skip to content

Commit

Permalink
Converted to Composer package + PHPunit for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickwest committed Nov 21, 2019
1 parent 995c439 commit e06a1a8
Show file tree
Hide file tree
Showing 7 changed files with 2,893 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.phpunit.result.cache
vendor/
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: php

env:
global:
- setup=stable

matrix:
fast_finish: true
include:
- php: 7.3
env: COVERAGE=1
- php: 7.2
env: COVERAGE=0

sudo: false

cache:
directories:
- $HOME/.composer/cache

before_install:
- travis_retry composer self-update

install:
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi

script:
- if [ "$COVERAGE" == "1" ]; then vendor/bin/phpunit --coverage-clover=coverage.xml; fi
- if [ "$COVERAGE" == "0" ]; then vendor/bin/phpunit; fi

after_success:
- bash <(curl -s https://codecov.io/bash)
29 changes: 29 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "nickwest/blossom-php",
"description": "Edmonds's Blossom Algorithm in PHP",
"authors": [
{
"name": "Thomas David Baker",
"email": "[email protected]"
},
{
"name": "Nick West",
"email": "[email protected]"
}
],
"license": "MIT",
"require": {
"php": "^7.2"
},
"autoload": {
"classmap": [],
"psr-4": {
"Nickwest\\BlossomPhp\\": "src/",
"Nickwest\\BlossomPhp\\Test\\": "tests/"
}
},
"minimum-stability": "stable",
"require-dev": {
"phpunit/phpunit": "^8.1"
}
}
Loading

0 comments on commit e06a1a8

Please sign in to comment.