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 ed0dfbb
Show file tree
Hide file tree
Showing 8 changed files with 2,442 additions and 186 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
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php
sudo: false
matrix:
fast_finish: true
cache:
- vendor
- bin
php:
- 5.6
- 7.0
before_script:
- composer install
- 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)/
Loading

0 comments on commit ed0dfbb

Please sign in to comment.