Commit Graph

125 Commits (4bfb83c9668e10bc2dd02c5bd437d2b53f1bab2c)

Author SHA1 Message Date
Matt Clay 0d46805979 Clean up shebangs for various files.
- Remove shebangs from:
  - ini files
  - unit tests
  - module_utils
  - plugins
  - module_docs_fragments
  - non-executable Makefiles
- Change non-modules from '/usr/bin/python' to '/usr/bin/env python'.
- Change '/bin/env' to '/usr/bin/env'.

Also removed main functions from unit tests (since they no longer
have a shebang) and fixed a python 3 compatibility issue with
update_bundled.py so it does not need to specify a python 2 shebang.

A script was added to check for unexpected shebangs in files.
This script is run during CI on Shippable.
8 years ago
Matt Clay e24588902f Move test_os_server and apply fixes.
- Add missing meta value for test_create_server
- Add .gitignore for pytest .cache directory

Exclude test_os_server from nose test runs since it was designed
for pytest. The test will work correctly when run using pytest.

This is a temporary issue, as we'll be moving to pytest soon.
8 years ago
Shane McDonald 4ae0d5b843 Build debs with pbuilder (#18165)
* Build debs with pbuilder
* Update README in packaging/debian
* Add Dockerfile for building debs
* Add local_deb makefile target - Allows users to build debs using locally installed dependencies. This was the `deb` target before moving to pbuilder.
8 years ago
Adrian Likins 95dd8cc2c7 Add '--cover-erase' to 'make tests' cli (#17708)
Otherwise the coverage is cumulative over multiple runs and can be misleading.
8 years ago
Adrian Likins be1139317a Add a 'make integration' target (#17710)
Runs test/utils/shippable/integration.sh
8 years ago
Toshio Kuratomi b8a8027b7d We've decided that python-3.5 is the minimum python version (#17270) 8 years ago
Jim Ladd 329a134cb3 Increase local version for unofficial rpms (#17026) 8 years ago
Adrian Likins 20ef8d5aaf Disable 'xmllint' checks in a2x (#16317)
It brings in a libxml2 dep to the docs build
require. The a2x default of xmllint invocation
attempts to make outgoing requests to download
XML DTD's, despite a2x using the '--nonet' flag.
8 years ago
Brian Coca e6cd0dbaf3 slight rearrangement of doc targets 8 years ago
Brian Coca a196c7d737 only send event if tqm exists
fixes #13843
9 years ago
Brian Coca bd0f9a4afc fix make complaint when git is not installed 9 years ago
James Laska 3c1fe28bed Correct broken DEB builds by fixing LC_TIME assignment
Fixes a `make deb` build failure introduced by
c41adc32c2
9 years ago
= c41adc32c2 [Makefile] Ensure english dates are generated in debian/changelog placeholder when building deb package.
It
9 years ago
Toshio Kuratomi 8dfefa2233 Remove GNU extension from xargs invocation
Fixes #12845
9 years ago
Toshio Kuratomi 15d7f53846 AnsibleModules.log() fix for python3
Also add unittests for AnsibleModules.log()

Fixes #12586
9 years ago
James Cammarata af1f462ba0 Fix to exclude forward slashes from git info during 'make rpm'
Fixes #12558
9 years ago
Brian Coca 87926cbb33 added egg to cleanup 9 years ago
Brian Coca 7a019d930e Merge pull request #8469 from srvg/packageversion_more_gitinfo
packaging: add short hash and branch name in package version for unoffici...
9 years ago
Brian Coca 24fd4faa28 avoid removing test all~ file 10 years ago
James Laska bbc05a2cf5 Improve generation of debian changelog 10 years ago
James Cammarata 1cf911d524 Back-porting Makefile changes for version/release 10 years ago
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
10 years ago
Brian Coca 24766bdfa0 added cleaning pyc files 10 years ago
Ofir Petrushka 37cc4cf9cb Reference tests/README.ME in the Makefile notes
https://github.com/ansible/ansible/issues/6776
10 years ago
Toshio Kuratomi 6c94d85690 Tell nose to include branches in its coverage reporting 10 years ago
Toshio Kuratomi 938b2108d0 Move the v2 tests under the v2 tree 10 years ago
Toshio Kuratomi 617352a38e Python3 test target and use coverage for all v2 tests. 10 years ago
Michael DeHaan f066e361f1 WIP on data structure processing patterns. 10 years ago
Michael DeHaan 335221d79e This is an exceedingly rough sketch of what attributes might look like - metaclass implementations NOT complete. 10 years ago
Michael DeHaan da01eef4db Move v2 out of the package tree so it does not yet appear. 10 years ago
Michael DeHaan 367f70fb17 Fix target in makefile 10 years ago
Michael DeHaan 1aa338a353 Make target for nosetests, no need to set library path for previous tests 10 years ago
Michael DeHaan bceb0026a5 Updating the module formatter to deal with the new repo structure. 10 years ago
Serge van Ginderachter df8dfdce06 packaging: add short has and branch name in package version for unofficial builds 10 years ago
James Laska 4046d1fd0d Correct Makefile variable usage 11 years ago
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
11 years ago
James Laska 4ee0898fc9 Assert the MOCK_CFG exists for the mock-rpm build target 11 years ago
James Laska 346d02e3b4 Improve OFFICIAL build conditional test
An unofficial build is any build where OFFICIAL != yes.  This patch adjusts the
conditional accordingly.
11 years ago
James Laska eede23ab0d Add support for rpm builds through mock 11 years ago
James Cammarata d287179f7b Updating Makefile for setuptools change
Fixes #7224
11 years ago
James Cammarata 12c812f030 Adding a man page for ansible-vault
Fixes #6471
11 years ago
James Cammarata ba4fbd2b66 Adding man page for ansible-galaxy
Partially resolves #6471
11 years ago
James Cammarata 168e3cf685 Revert "Adding a Makefile target for integration tests - "make integration""
This reverts commit 6f1a58abd3.
11 years ago
James Cammarata 6f1a58abd3 Adding a Makefile target for integration tests - "make integration" 11 years ago
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.
11 years ago
Michael DeHaan f0dd040377 reconnect unit tests to 'make tests' 11 years ago
Michael DeHaan 1270e2350c Remove man3 stuff since this is available via ansible-doc, rpm target should
build manpages.
11 years ago
Michael DeHaan fe2d00d9d3 WIP on refactoring the module formatter code that we use to build the doc site with. 11 years ago
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
11 years ago
Michael Scherer 906f7fd8a0 check more files using make pyflakes ( ie subdirectory of lib/ansible/ ) 11 years ago