Skip to content

Commit

Permalink
Merge pull request #46 from utahta/v2.0.0
Browse files Browse the repository at this point in the history
v2.0.0
  • Loading branch information
utahta authored Jul 13, 2017
2 parents a4b60a2 + 1ad4a67 commit 77d5512
Show file tree
Hide file tree
Showing 84 changed files with 4,259 additions and 2,155 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dockerfiles export-ignore
Makefile export-ignore
.gitignore export-ignore
phpunit.xml export-ignore
.travis.yml export-ignore
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
.svnignore
.idea
*.iml

vendor
build
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: php
php:
- '5.6'
- '7.0'
- '7.1'

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

install:
- make install

script:
- make test
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.PHONY: install
install:
composer install

.PHONY: build
build:
@rm -rf vendor build
@mkdir build
@git archive --worktree-attributes --format=tar --prefix=wp-social-bookmarking-light/ HEAD | (cd build && tar xf -)
@composer install --no-dev
@cp -r ./vendor ./build/wp-social-bookmarking-light/vendor

.PHONY: test
test:
./vendor/bin/phpunit src

docker/up: build
@make -s -C ./dockerfiles up

docker/stop:
@make -s -C ./dockerfiles stop

docker/up-wp47-php56: build
@make -s -C ./dockerfiles up-wp47-php56

docker/stop-wp47-php56:
@make -s -C ./dockerfiles stop-wp47-php56

docker/up-wp47-php71: build
@make -s -C ./dockerfiles up-wp47-php71

docker/stop-wp47-php71:
@make -s -C ./dockerfiles stop-wp47-php71

docker/up-wp46-php56: build
@make -s -C ./dockerfiles up-wp46-php56

docker/stop-wp46-php56:
@make -s -C ./dockerfiles stop-wp46-php56
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "utahta/wp-social-bookmarking-light",
"description": "Plugin for WordPress. Embed share buttons in your website.",
"type": "project",
"license": "GPLv2",
"authors": [
{
"name": "utahta",
"email": "labs.ninxit@gmail.com"
}
],
"require": {
"twig/twig": "^1.0"
},
"autoload": {
"psr-4": { "": "src/" }
},
"require-dev": {
"phpunit/phpunit": "^5.0"
}
}
Loading

0 comments on commit 77d5512

Please sign in to comment.