Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
94229871
Commit
94229871
authored
Dec 12, 2014
by
Hannes Magnusson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHP-1326: Makefile for testing/releasing & stuffz
parent
3458636e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
Makefile
Makefile
+74
-0
No files found.
Makefile
0 → 100644
View file @
94229871
.PHONY
:
apigen compser test docs mkdocs
PHONGO_LIB_VERSION
=
`
php
-r
'require "src/Collection.php"; echo MongoDB\Collection::VERSION, "\n";'
`
COMPOSER_ARGS
=
update
--no-interaction
--prefer-source
PHPUNIT_ARGS
=
--process-isolation
composer
:
@
command
-v
composer
>
/dev/null 2>&1
;
\
if
test
$$
?
-eq
0
;
then
\
composer
$(COMPOSER_ARGS)
;
\
elif
test
-r
composer.phar
;
then
\
php composer.phar
$(COMPOSER_ARGS)
;
\
else
\
echo
"Cannot find composer :("
;
\
echo
"Aborting."
;
\
exit
1
;
\
fi
test
:
composer
@
command
-v
phpunit
>
/dev/null 2>&1
;
\
if
test
$$
?
-eq
0
;
then
\
phpunit
$(PHPUNIT_ARGS)
;
\
elif
test
-r
phpunit.phar
;
then
\
php phpunit.phar
$(PHPUNIT_ARGS)
;
\
else
\
echo
"Cannot find phpunit :("
;
\
echo
"Aborting."
;
\
exit
1
;
\
fi
apigen
:
@
command
-v
apigen
>
/dev/null 2>&1
;
\
if
test
$$
?
-eq
0
;
then
\
apigen generate
elif
test
-r
phpunit.phar
;
then
\
php apigen generate
\
else
\
echo
"Cannot find apigen :("
;
\
echo
"Aborting."
;
\
exit
1
;
\
fi
mkdocs
:
@
command
-v
mkdocs
>
/dev/null 2>&1
;
\
if
test
$$
?
-eq
0
;
then
\
mkdocs build
--clean
\
else
\
echo
"Cannot find apigen :("
;
\
echo
"Aborting."
;
\
exit
1
;
\
fi
docs-api
:
apigen
docs
:
mkdocs
release
:
test RELEASE
@
echo
"Please run:"
@
echo
" "
git commit
-m
\"
Add
$(PHONGO_LIB_VERSION)
release notes
\"
RELEASE-
$(PHONGO_LIB_VERSION)
@
echo
" "
git tag
-a
-m
\"
Release phongo-library
$(PHONGO_LIB_VERSION)
\"
$(PHONGO_LIB_VERSION)
@
echo
" "
git push
--tags
@
echo
" "
make release-docs
@
echo
"And don't forget to pump version in src/Collection.php"
docs
:
mkdocs build
--clean
release-docs
:
docs
mkdocs gh-deploy
--clean
RELEASE
:
@
git log
--pretty
=
format:
"%ad %an <%ae>%n%x09* %s%n"
--date
short
--since
=
"
$$
(git show -s --format=%ad
`
git rev-list
--tags
--max-count
=
1
`
)"
>
RELEASE-
$(PHONGO_LIB_VERSION)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment