Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dz0ny committed Nov 18, 2016
1 parent f7c359e commit 33bbc12
Show file tree
Hide file tree
Showing 9 changed files with 2,446 additions and 189 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
composer.phar
/vendor/

.idea
bin
build
cover
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: php
sudo: false
matrix:
fast_finish: true
cache:
directories:
- vendor
- bin
- $HOME/.composer/cache
php:
- 5.6
- 7.0
before_script:
- composer install --prefer-dist
- mkdir -p build/logs
script:
- make lint
- make test
after_script:
- bin/coveralls -v
26 changes: 16 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@ MAINFILE := index.php
SRCPATH := $(shell pwd)/src
SVNUSER := niteoweb

SVNUSER := niteoweb

lint:
bin/phpcs --config-set show_warnings 0
bin/phpcs --config-set default_standard PSR2
bin/phpcs src/

test:
bin/phpunit

release:
mkdir -p build
cp -ar src $(PLUGINSLUG)
zip -r $(PLUGINSLUG).zip $(PLUGINSLUG)
rm -rf $(PLUGINSLUG)
mv $(PLUGINSLUG).zip build/

# deploy:
# @rm -fr /tmp/$(PLUGINSLUG)/
# svn co http://plugins.svn.wordpress.org/$(PLUGINSLUG)/ /tmp/$(PLUGINSLUG)
# cp -ar $(SRCPATH)/* /tmp/$(PLUGINSLUG)/trunk/
# cd /tmp/$(PLUGINSLUG)/trunk/; svn add * --force
# cd /tmp/$(PLUGINSLUG)/trunk/; svn commit --username=$(SVNUSER) -m "Updating to $(VERSION)"
# cd /tmp/$(PLUGINSLUG)/; svn copy trunk/ tags/$(VERSION)/
# cd /tmp/$(PLUGINSLUG)/tags/$(VERSION)/; svn commit --username=$(SVNUSER) -m "Tagging version $(VERSION)"
# # rm -fr /tmp/$(PLUGINSLUG)/
deploy:
@rm -fr /tmp/$(PLUGINSLUG)/
svn co http://plugins.svn.wordpress.org/$(PLUGINSLUG)/ /tmp/$(PLUGINSLUG)
cp -ar $(SRCPATH)/* /tmp/$(PLUGINSLUG)/trunk/
cd /tmp/$(PLUGINSLUG)/trunk/; svn add * --force
cd /tmp/$(PLUGINSLUG)/trunk/; svn commit --username=$(SVNUSER) -m "Updating to $(VERSION)"
cd /tmp/$(PLUGINSLUG)/; svn copy trunk/ tags/$(VERSION)/
cd /tmp/$(PLUGINSLUG)/tags/$(VERSION)/; svn commit --username=$(SVNUSER) -m "Tagging version $(VERSION)"
rm -fr /tmp/$(PLUGINSLUG)/
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Remove Footer Links

[![Build Status](https://travis-ci.org/niteoweb/footerlinks.svg?branch=master)](https://travis-ci.org/niteoweb/footerlinks)
[![Coverage Status](https://coveralls.io/repos/niteoweb/footerlinks/badge.svg)](https://coveralls.io/r/niteoweb/footerlinks)

[![Build Status](https://travis-ci.org/niteoweb/Remove-Footer-Links.svg?branch=master)](https://travis-ci.org/niteoweb/Remove-Footer-Links)
[![Coverage Status](https://coveralls.io/repos/github/niteoweb/Remove-Footer-Links/badge.svg)](https://coveralls.io/github/niteoweb/Remove-Footer-Links)
## Info

Remove Footer Links will try to remove all the footer links and copyright info from your theme.
Expand Down
Loading

0 comments on commit 33bbc12

Please sign in to comment.