Skip to content

Commit

Permalink
CPAN Release 0.0.8
Browse files Browse the repository at this point in the history
- Add t/000-compile-modules.t
  • Loading branch information
ingydotnet committed Aug 16, 2014
1 parent 58c7fd8 commit 8d071b8
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 19 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -1,4 +1,9 @@
---
version: 0.0.8
date: Fri Aug 15 20:52:24 PDT 2014
changes:
- Add t/000-compile-modules.t
---
version: 0.0.7
date: Sat Aug 9 00:26:12 PDT 2014
changes:
Expand Down
74 changes: 57 additions & 17 deletions Makefile
Expand Up @@ -9,6 +9,7 @@

PERL ?= $(shell which perl)
ZILD := $(PERL) -S zild
LOG := $(PERL_ZILLA_DIST_RELEASE_LOG)

ifneq (,$(shell which zild))
NAMEPATH := $(shell $(ZILD) meta =cpan/libname)
Expand Down Expand Up @@ -38,19 +39,22 @@ help:
@echo 'Makefile targets:'
@echo ''
@echo ' make test - Run the repo tests'
@echo ' make test-dev - Run the developer only tests'
@echo ' make test-all - Run all tests'
@echo ' make test-cpan - Make cpan/ dir and run tests in it'
@echo ' make test-dist - Run the dist tests'
@echo ''
@echo ' make install - Install the dist from this repo'
@echo ' make prereqs - Install the CPAN prereqs'
@echo ' make update - Update generated files'
@echo ' make release - Release the dist to CPAN'
@echo ''
@echo ' make cpan - Make cpan/ dir with dist.ini'
@echo ' make cpanshell - Open new shell into new cpan/'
@echo ' make cpantest - Make cpan/ dir and run tests in it'
@echo ''
@echo ' make dist - Make CPAN distribution tarball'
@echo ' make distdir - Make CPAN distribution directory'
@echo ' make distshell - Open new shell into new distdir'
@echo ' make disttest - Run the dist tests'
@echo ''
@echo ' make upgrade - Upgrade the build system (Makefile)'
@echo ' make readme - Make the ReadMe.pod file'
Expand All @@ -61,13 +65,40 @@ help:
@echo ' make help - Show this help'
@echo ''

#------------------------------------------------------------------------------
# Test Targets:
#------------------------------------------------------------------------------
test:
ifeq ($(wildcard pkg/no-test),)
ifneq ($(wildcard test),)
$(PERL) -S prove -lv test
endif
else
@echo "Testing not available. Use 'disttest' instead."
@echo "Testing not available. Use 'test-dist' instead."
endif

test-dev:
ifneq ($(wildcard test/devel),)
$(PERL) -S prove -lv test/devel
endif

test-all: test test-dev

test-cpan: cpan
ifeq ($(wildcard pkg/no-test),)
@echo '***** Running tests in `cpan/` directory'
(cd cpan; $(PERL) -S prove -lv t) && make clean
else
@echo "Testing not available. Use 'test-dist' instead."
endif

test-dist: cpan
@echo '***** Running tests in `$(DISTDIR)` directory'
(cd cpan; dzil test) && make clean

#------------------------------------------------------------------------------
# Installation Targets:
#------------------------------------------------------------------------------
install: distdir
@echo '***** Installing $(DISTDIR)'
(cd $(DISTDIR); perl Makefile.PL; make install)
Expand All @@ -80,17 +111,34 @@ update: makefile
@echo '***** Updating/regenerating repo content'
make readme contrib travis version webhooks

#------------------------------------------------------------------------------
# Release and Build Targets:
#------------------------------------------------------------------------------
release:
ifneq ($(LOG),)
@echo "$$(date) - Release $(DIST) STARTED" >> $(LOG)
endif
make self-install
make clean
make update
make check-release
make date
make test
make disttest
make test-all
make test-dist
@echo '***** Releasing $(DISTDIR)'
make dist
ifneq ($(PERL_ZILLA_DIST_RELEASE_TIME),)
@echo $$(( ( $$PERL_ZILLA_DIST_RELEASE_TIME - $$(date +%s) ) / 60 )) \
minutes, \
$$(( ( $$PERL_ZILLA_DIST_RELEASE_TIME - $$(date +%s) ) % 60 )) \
seconds, until RELEASE TIME!
@echo sleep $$(( $$PERL_ZILLA_DIST_RELEASE_TIME - $$(date +%s) ))
@sleep $$(( $$PERL_ZILLA_DIST_RELEASE_TIME - $$(date +%s) ))
endif
cpan-upload $(DIST)
ifneq ($(LOG),)
@echo "$$(date) - Release $(DIST) UPLOADED" >> $(LOG)
endif
make clean
[ -z "$$(git status -s)" ] || zild-git-commit
git push
Expand All @@ -101,6 +149,9 @@ release:
@echo
@[ -n "$$(which cowsay)" ] && cowsay "$(SUCCESS)" || echo "$(SUCCESS)"
@echo
ifneq ($(LOG),)
@echo "$$(date) - Release $(DIST) COMPLETED" >> $(LOG)
endif

cpan:
@echo '***** Creating the `cpan/` directory'
Expand All @@ -111,14 +162,6 @@ cpanshell: cpan
(cd cpan; $$SHELL)
make clean

cpantest: cpan
ifeq ($(wildcard pkg/no-test),)
@echo '***** Running tests in `cpan/` directory'
(cd cpan; $(PERL) -S prove -lv t) && make clean
else
@echo "Testing not available. Use 'disttest' instead."
endif

dist: clean cpan
@echo '***** Creating new dist: $(DIST)'
(cd cpan; dzil build)
Expand All @@ -137,10 +180,6 @@ distshell: distdir
(cd $(DISTDIR); $$SHELL)
make clean

disttest: cpan
@echo '***** Running tests in `$(DISTDIR)` directory'
(cd cpan; dzil test) && make clean

upgrade:
@echo '***** Checking that Zilla-Dist Makefile is up to date'
cp `$(ZILD) sharedir`/Makefile ./
Expand Down Expand Up @@ -168,6 +207,7 @@ check-release:
@echo '***** Checking readiness to release $(DIST)'
RELEASE_BRANCH=$(RELEASE_BRANCH) zild-check-release
git stash
rm -fr .git/rebase-apply
git pull --rebase origin $(RELEASE_BRANCH)
git stash pop

Expand Down
2 changes: 1 addition & 1 deletion Meta
@@ -1,7 +1,7 @@
=meta: 0.0.1

name: TestML-Tiny
version: 0.0.7
version: 0.0.8
abstract: Single File Subset of TestML
homepage: http://testml.org

Expand Down
2 changes: 1 addition & 1 deletion lib/TestML/Tiny.pm
@@ -1,6 +1,6 @@
use 5.008001; use strict; use warnings;
package TestML::Tiny;
our $VERSION = '0.0.7';
our $VERSION = '0.0.8';

use Carp;
use Test::More;
Expand Down

0 comments on commit 8d071b8

Please sign in to comment.