Skip to content

Commit

Permalink
begin conversion to composer package
Browse files Browse the repository at this point in the history
  • Loading branch information
mike42 committed Dec 9, 2017
1 parent d9bc724 commit 55a39b0
Show file tree
Hide file tree
Showing 14 changed files with 2,884 additions and 1,227 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
.buildpath
.settings/*
.project

/vendor/
31 changes: 31 additions & 0 deletions .travis.yml
@@ -0,0 +1,31 @@
---
dist: trusty
sudo: false

language: php

php:
- 5.6
- 7.0

addons:
apt:
sources:
- sourceline: 'ppa:mike42/mdcheckr'
packages:
- mdcheckr

install:
- composer install

before_script:
- printf "\n" | pecl install imagick

script:
# Check all PHP files with phpcs
- php vendor/bin/phpcs --standard=psr2 --ignore=vendor -n .
# Check all *.md files in git with mdcheckr
- git ls-files | grep '\.md$' | tr '\n' '\0' | xargs -0 mdcheckr
# Execute unit tests
- php vendor/bin/phpunit

3 changes: 1 addition & 2 deletions README.md
@@ -1,5 +1,4 @@
Wikitext parser
---------------
# Wikitext parser [![Build Status](https://travis-ci.org/mike42/wikitext.svg?branch=master)](https://travis-ci.org/mike42/wikitext)

This library can be used to add basic wikitext (Mediawiki-style) support to a PHP app.

Expand Down
20 changes: 20 additions & 0 deletions composer.json
@@ -0,0 +1,20 @@
{
"name": "mike42/wikitext",
"description": "PHP wikitext parser",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Michael Billington",
"email": "michael.billington@gmail.com"
}
],
"require-dev": {
"phpunit/phpunit": "^6.5"
},
"autoload": {
"psr-4": {
"Mike42\\" : "src/Mike42"
}
}
}

0 comments on commit 55a39b0

Please sign in to comment.