Brian Coca
bd0f9a4afc
fix make complaint when git is not installed
2015-12-10 21:50:44 -05:00
James Laska
3c1fe28bed
Correct broken DEB builds by fixing LC_TIME assignment
...
Fixes a `make deb` build failure introduced by
c41adc32c2
2015-11-02 12:30:36 -05:00
=
c41adc32c2
[Makefile] Ensure english dates are generated in debian/changelog placeholder when building deb package.
...
It
2015-11-01 21:37:02 +01:00
Toshio Kuratomi
8dfefa2233
Remove GNU extension from xargs invocation
...
Fixes #12845
2015-10-26 07:16:21 -07:00
Toshio Kuratomi
15d7f53846
AnsibleModules.log() fix for python3
...
Also add unittests for AnsibleModules.log()
Fixes #12586
2015-10-12 13:30:27 -07:00
James Cammarata
af1f462ba0
Fix to exclude forward slashes from git info during 'make rpm'
...
Fixes #12558
2015-09-30 09:32:09 -04:00
Brian Coca
87926cbb33
added egg to cleanup
2015-08-16 09:33:20 -04:00
Brian Coca
7a019d930e
Merge pull request #8469 from srvg/packageversion_more_gitinfo
...
packaging: add short hash and branch name in package version for unoffici...
2015-07-28 19:17:30 -04:00
Brian Coca
24fd4faa28
avoid removing test all~ file
2015-06-05 18:42:14 -04:00
James Laska
bbc05a2cf5
Improve generation of debian changelog
2015-04-09 09:30:56 -04:00
James Cammarata
1cf911d524
Back-porting Makefile changes for version/release
2015-04-07 09:54:19 -05:00
James Laska
3d67e9e0c0
Add tox and travis-ci support
...
Add tox integration to run unittests in supported python releases.
Travis-CI is used for test execution.
Additionally, the unittest TestQuotePgIdentifier was updated to support
using assert_raises_regexp on python-2.6.
Sample travis-ci output available at
https://travis-ci.org/ansible/ansible/builds/54189977
2015-03-13 08:20:24 -04:00
Brian Coca
24766bdfa0
added cleaning pyc files
2015-02-17 16:41:34 -05:00
Ofir Petrushka
37cc4cf9cb
Reference tests/README.ME in the Makefile notes
...
https://github.com/ansible/ansible/issues/6776
2015-01-28 17:21:27 +02:00
Toshio Kuratomi
6c94d85690
Tell nose to include branches in its coverage reporting
2014-10-21 16:41:16 -04:00
Toshio Kuratomi
938b2108d0
Move the v2 tests under the v2 tree
2014-10-15 18:08:28 -04:00
Toshio Kuratomi
617352a38e
Python3 test target and use coverage for all v2 tests.
2014-10-12 18:54:01 -04:00
Michael DeHaan
f066e361f1
WIP on data structure processing patterns.
2014-10-06 16:29:18 -04:00
Michael DeHaan
335221d79e
This is an exceedingly rough sketch of what attributes might look like - metaclass implementations NOT complete.
2014-10-03 14:54:04 -04:00
Michael DeHaan
da01eef4db
Move v2 out of the package tree so it does not yet appear.
2014-10-02 13:47:25 -04:00
Michael DeHaan
367f70fb17
Fix target in makefile
2014-10-02 13:43:36 -04:00
Michael DeHaan
1aa338a353
Make target for nosetests, no need to set library path for previous tests
2014-10-02 13:41:52 -04:00
Michael DeHaan
bceb0026a5
Updating the module formatter to deal with the new repo structure.
2014-09-26 17:10:13 -04:00
Serge van Ginderachter
df8dfdce06
packaging: add short has and branch name in package version for unofficial builds
2014-08-06 15:08:55 +02:00
James Laska
4046d1fd0d
Correct Makefile variable usage
2014-06-20 19:59:09 -04:00
James Laska
411311495f
Updated DEB build workflow
...
Updates to Makefile include:
* add targets: deb-src, deb-src-upload, deb-upload
* add variables to control DEB building: DEBUILD_OPTS, DPUT_OPTS, DEB_PPA, DEB_DIST, DEB_RELEASE
* create deb files for all release values in DEB_DIST
Several updates to packaging/debian/*
* Updated control file
* Whitespace/formatting of changelog
Add deb-build to .gitignore
2014-06-20 16:09:02 -04:00
James Laska
4ee0898fc9
Assert the MOCK_CFG exists for the mock-rpm build target
2014-05-09 09:01:44 -04:00
James Laska
346d02e3b4
Improve OFFICIAL build conditional test
...
An unofficial build is any build where OFFICIAL != yes. This patch adjusts the
conditional accordingly.
2014-05-08 14:57:14 -04:00
James Laska
eede23ab0d
Add support for rpm builds through mock
2014-05-08 14:47:20 -04:00
James Cammarata
d287179f7b
Updating Makefile for setuptools change
...
Fixes #7224
2014-04-29 20:02:28 -05:00
James Cammarata
12c812f030
Adding a man page for ansible-vault
...
Fixes #6471
2014-03-17 10:02:54 -05:00
James Cammarata
ba4fbd2b66
Adding man page for ansible-galaxy
...
Partially resolves #6471
2014-03-16 14:00:50 -05:00
James Cammarata
168e3cf685
Revert "Adding a Makefile target for integration tests - "make integration""
...
This reverts commit 6f1a58abd3
.
2014-02-26 09:30:16 -06:00
James Cammarata
6f1a58abd3
Adding a Makefile target for integration tests - "make integration"
2014-02-26 09:26:48 -06:00
James Laska
a77ea0f942
Allow custom nosetests parameters
...
The NOSETESTS variable can be used to support customizing the nosetests
parameters. This allows providing custom nose parameters such as
--with-coverage.
2014-02-21 15:37:16 -05:00
Michael DeHaan
f0dd040377
reconnect unit tests to 'make tests'
2014-02-20 19:13:27 -05:00
Michael DeHaan
1270e2350c
Remove man3 stuff since this is available via ansible-doc, rpm target should
...
build manpages.
2014-01-03 11:06:45 -05:00
Michael DeHaan
fe2d00d9d3
WIP on refactoring the module formatter code that we use to build the doc site with.
2013-12-25 13:24:29 -05:00
Michael Scherer
7a220e3b94
fix make tests to use the set of module from git checkout
...
If someone try to run the test suit with ansible already installed,
the mix between content in /usr/share and in the git checkout
can result in strange failure ( as I found out the hard way ). For example,
the test_copy module will call the action plugin for copy from git,
who will call the 'file' module from system, passing unsupported arguments
2013-11-16 12:45:24 +01:00
Michael Scherer
906f7fd8a0
check more files using make pyflakes ( ie subdirectory of lib/ansible/ )
2013-11-02 16:07:58 +01:00
Michael DeHaan
0cd09dd54f
Remove extra "latest/" subdirectory in docs build structure.
2013-10-14 08:27:30 -04:00
r-p-e
338ecdd578
Simplify the selection of date command
...
- use egrep patterns to detect BSDs in one ifeq
- use seconds-since-epoch as input for BSD date (-r option)
- get seconds-since-epoch from git log with "%at" format string
2013-09-15 21:27:18 +02:00
Patrick Callahan
a37b6a2ad3
Do not set RPMDIST to '%dist' when dist is not set by the distribution.
2013-06-02 13:27:04 -04:00
Michael DeHaan
8050110ba2
Not sure why RPM was trying to avoid certain files starting with f. Change that.
2013-05-29 14:21:25 -04:00
Michael DeHaan
f9a14f0d70
Fixup fetch doc formatting.
2013-05-29 10:45:31 -04:00
Elan Ruusamäe
a0678771cd
make path to nosetests executable configurable
...
this is to make use python2 when nosetests points to python3:
make NOSETEST=nosetests-2.7 tests
2013-05-11 13:16:04 +03:00
Michael DeHaan
3f3b2a9448
Smush Jinja2 braces in playbooks so unresolved variables get parsed nicely
2013-04-12 18:38:48 -04:00
Michael DeHaan
26819d707d
Reorganize docs structure to support snapshots.
2013-04-12 17:50:50 -04:00
Michael DeHaan
148d8859ba
Docs on parameterized roles, make document generation output less noisy
2013-04-12 17:45:27 -04:00
Serge van Ginderachter
ec6236a107
add clean up authors file to make clean
2013-03-26 08:19:45 +01:00
Jimmy Tang
40ca1d4b3e
Teach 'make rpm' to build on RHEL5/SL5 etc...
2013-03-11 15:37:03 +00:00
Jimmy Tang
8c6caa2762
Fix up other places in makefile to use PYTHON variable
...
Only the nosetests aren't using the PYTHON variable now.
2013-03-11 15:31:07 +00:00
Michael DeHaan
e5f5d354cf
Merge pull request #2278 from jcftang/devel
...
Teach makefile to accept different versions of python
2013-03-10 15:20:38 -07:00
Tim Bielawa
badb41390e
Update the Makefile and build-site.py to notify of missing dependencies for doc compiling
2013-03-05 13:59:39 -05:00
Daniel Hokka Zakrisson
e2c1b34dbb
Remove webdocs from docs
...
No reason to build the website for RPMs/DEBs, adding dependency on
Sphinx.
2013-03-05 13:05:00 +01:00
Jimmy Tang
785068df63
Teach makefile to accept different versions of python
...
This commit makes the Makefile nicer for packagers so they can select versions
of python. E.g. on a RHEL5 system with Python2.6 (installed from EPEL)
make PYTHON=python2.6 install
2013-03-02 14:38:02 +00:00
Michael DeHaan
38bd17af22
Restore authors file
2013-03-01 21:41:42 -05:00
Michael DeHaan
fa550f3d7e
Adding a script to auto-generate an authors file, runnable from 'make authors', which is called from 'make docs/webdocs'.
2013-02-26 22:05:17 -05:00
Michael DeHaan
e9d5cf3bc2
Fix documentation YAML for pkgin module
2013-01-26 12:44:43 -05:00
Jan-Piet Mens
17f31a2a79
CLI: ansible-doc shows lists of modules & module docs on command-line
...
check path is directory
added manpage & setup
small cleanup
shut up module_formatter in utils to avoid trace print on crud files in library
2012-11-30 21:57:25 -05:00
Dag Wieers
a162fa70da
moduleformatter.py should include our own ansible clone
...
Without this, module_formatter.py relies on the installed ansible which is wrong in more than one way.
2012-11-12 14:22:30 +01:00
Dag Wieers
d4b6aecd97
Fix broken RPM names due to static _rpmfilename
2012-11-08 00:09:18 +01:00
Michael DeHaan
062484b9bd
Put generated manpages back in correct directory
2012-10-10 20:09:40 -04:00
Michael DeHaan
110244d7b4
Merge branch 'remove-argparse' of git://github.com/dagwieers/ansible into devel
...
Conflicts:
hacking/module_formatter.py
Don't run webdocs build when building packages
2012-10-10 18:46:51 -04:00
Marco Vito Moscaritolo
ee679c0190
Unified document generator and make to generate JSON and JS files
2012-10-10 18:41:50 -04:00
Michael DeHaan
d5bb7258c8
Working on makefile
2012-10-10 08:03:52 -04:00
Dag Wieers
2dcd0846ab
Use getopt instead of argparse
...
On RHEL5 and RHEL6 there is not argparse, and 'make rpm' fails because of this.
With this change it works, and I can test and fix my own documentation...
2012-10-09 12:23:30 +02:00
Tim Bielawa
9541b47b52
Keep the man3 directory. 'make docs' breaks without it.
2012-10-08 12:28:20 -04:00
Michael DeHaan
4a95194424
Docs rebuild in new project structure.
2012-10-08 08:09:27 -04:00
Tim Bielawa
85fb7c6d4b
Library functions and modules should be in the 3 man page section. Also the files should end in '.3'
2012-10-03 10:18:55 -04:00
Michael DeHaan
53d24ef002
Check in generated manpage documentation from modules
2012-10-02 22:46:49 -04:00
Dag Wieers
765061d445
Make use of UTC dates for RPM timestamp
...
So they can be shared/compared by people in different timezones
2012-10-02 14:29:57 +02:00
Jan-Piet Mens
61ee632d23
documentation: man template: support empty options; add Version to Makefile
2012-09-30 13:33:21 +02:00
Michael DeHaan
06cfc52afd
fix tests and change nosetests flags so asserts show what comparisons failed
2012-09-27 22:12:15 -04:00
Jan-Piet Mens
d47e15a1f2
module_formatter in hacking/
2012-09-26 20:41:44 +02:00
Matthew Johnson
5072ed3bd3
date parsing for OSX is BSD-like
2012-09-19 05:56:55 -04:00
Brian Coca
83d1028a21
- Makefile now works with freebsd (date command options are diff)
...
date still issues warning and ignores TZ
- Updated tests to work inside bsd jails (127 addresses are an issue)
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
2012-08-29 09:46:05 -04:00
Michael DeHaan
eee2d1afd0
If ANSIBLE_KEEP_REMOTE_FILES=1 is set as an environment file, remote files will not be deleted, which is useful only for development debugging purposes.
2012-08-16 21:34:55 -04:00
Tim Bielawa
6d9e873724
Add some docs/examples
...
Add a basic ansible-pull man page.
Add the example playbooks/scripts to the RPM package.
Closes #841
2012-08-14 13:05:44 -04:00
Michael DeHaan
00c28e2810
formatting
2012-08-11 18:41:36 -04:00
Michael DeHaan
477ca2ed1a
Make pep8 tests run against the library directory as well, and associated tweaks (mostly to indentation) in the library
...
directory.
2012-08-11 12:35:58 -04:00
Dag Wieërs
6b774f8cf5
Place the freshly built RPM directly into rpm-build/
...
So we get the exact behavior as the SRPM build
2012-08-01 15:25:19 +02:00
Dag Wieërs
ec7c8eb8ca
Implements git commit date into RPM release
...
With this patch one can do `make rpm` and get an RPM file that looks like:
rpm-build/noarch/ansible-0.6-0.git201208010541.el6.noarch.rpm
My goal was not to rewrite the original SPEC file, and/or the tarball. In other
projects what I tend to do is prepare the SPEC file in the tarball with the
correct version/release so that rpmbuild works on the (released) tarball as
well. If this is wanted, we will have to rewrite the SPEC file on the fly as
part of creating the tarball. If there is no git or .git/ available, we will
use the current time.
2012-08-01 14:58:02 +02:00
Chin Fang
e3b2521f01
Added a host expansion feature to ansible's inventory parsing
2012-07-24 12:38:52 -07:00
Henry Graham
21269a845f
debian packaging
2012-04-23 19:17:01 -04:00
Michael DeHaan
e36a52f06c
Ignore pyflakes E261 style output (multiple spaces before inline comment)
2012-04-21 12:05:15 -04:00
Michael DeHaan
9d0f2a6e9b
Unused import
2012-04-21 12:01:15 -04:00
Michael DeHaan
f72114c657
Move setup.py stuff back to top level as "make sdist" was not working, plus, it makes sources cleaner.
2012-04-21 11:56:06 -04:00
Tim Bielawa
516df5f64f
Move packaging related things out of the root directory:
...
Distutils MANIFEST.in, setup.py -> packaging/distutils/ directory.
2012-04-19 13:50:09 -04:00
Tim Bielawa
66f294d5c1
Finish up moving spec file
2012-04-18 11:00:59 -04:00
Tim Bielawa
3f9a41b22d
Docs build using version in the VERSION file.
...
Makefile upgraded with comments and some simplifications.
Remove useless 'PHONEY' and 'VPATH' directives from Makefile
2012-04-17 10:45:17 -04:00
Tim Bielawa
d43cf592eb
Renaming asciidoc sources to .in.
...
Change manpages to build from *.in and add comments about how the make
targets work.
2012-04-17 10:31:40 -04:00
Tim Bielawa
2d26d1fd71
Update %description and auto-add version to manpages
...
Conflicts:
docs/man/man1/ansible-playbook.1
docs/man/man1/ansible.1
Update %description
2012-04-17 10:31:34 -04:00
Michael DeHaan
96a22b582b
Disable ohai test as it's hanging for whatever reason, but doesn't do this in real life.
...
Run tests in verbose mode.
2012-03-31 11:18:26 -04:00
Michael DeHaan
9c5ec886a6
Import cleanup, plus have /bin/ansible remind you if no hosts were matched by a pattern (for instance, assume
...
there was a typo in the pattern)
2012-03-18 17:53:58 -04:00
Michael DeHaan
f1c8fc63cb
host file must be marked config(noreplace), update rpm build to use checked in manpage src
2012-03-31 11:08:42 -04:00
Michael DeHaan
9049b0e7ca
Because folks on RHEL 6 (not CentOS 6) have some issues with asciidoc, do not build the asciidoc from
...
the rpm or make install targets. Also modify the make install (only) to copy over files into the library
directory since the setup.py does not do this (due to a distutils bug, more or less).
2012-03-15 20:21:10 -04:00
Tim Bielawa
3f245498c4
Fixup RPM building: Makefile, Spec File, .gitignore
...
Fixup distutils: setup.py
Clean old cruft: section 5 man pages
2012-03-10 14:22:11 -05:00
Michael DeHaan
209760f8f6
Add manpage for ansible-playbook, since it is a command. More detailed docs will remain on the web site.
2012-03-09 22:06:44 -05:00
Michael DeHaan
742258a078
Drop other man(5) pages so we can have only one source of docs -- ansible.github.com for those operations.
...
Easier to maintain and much more verbose.
2012-03-08 13:56:27 -05:00