Commit Graph

8 Commits

Author SHA1 Message Date
ZhongShengping b2226299ec Dissuade .gitignore references to personal tools
Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools. Add a comment block explaining this, for
clarity, and remove the one current editor-specific entry present.

We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks, documentation
and packaging builds, et cetera).

This change is a port of Ib58a57267b064e4142686de6c37a70dbff04b9a7
from the openstack-dev/cookiecutter repository.

Change-Id: I2a8e2379075a7f9860d7ef5b64dad87196f155f5
2018-10-08 11:39:24 +08:00
ZhongShengping af360a606c Update .gitignore
This patch[1] already explains why updating .gitignore

[1]https://review.openstack.org/#/c/466356/

Change-Id: Iea12e3b3d7634fb6e910a263cb4ac7a141180bd1
Depends-On: Ifeaaa14c63158d0318218ca62ee41e98fc4c0b57
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
2018-04-11 08:55:19 +08:00
Alex Schultz 53e8a163d0 Adjust fixtures .gitignore
The .gitignore influences what files are include in a puppet module
tarball.  Since puppet-horizon has some test files that need to be
included, we need to make sure that we don't completely exclude
spec/fixtures. This change updates the module to just exclude
spec/fixtures/modules which should not be shipped.

Change-Id: Ia363a13f8a2be1f751c32c3a30ad5c4a5d352abf
Closes-Bug: #1732262
2017-11-14 13:01:57 -07:00
Emilien Macchi 57ff7518cf Add basic structure for ReNo
ReNo [1] is the release management tool in OpenStack.
This patch adds the basic structure to start using it.

* Update .gitignore
* Add a basic note "use-reno"
* Add releasenotes/ dir and basic files
* Add python files: setup.cfg, setup.py, test-requirements.txt and
  tox.ini.

[1] http://docs.openstack.org/developer/reno

Change-Id: Icce3eb1ea97ebaed3cbdead06adc5916add347e1
2016-03-14 08:29:25 -04:00
Emilien Macchi 06e150fa18 Try to use zuul-cloner to prepare fixtures
In OpenStack Infra, we would like to run Puppet unit tests that
sometimes depends on other Puppet OpenStack modules.
Example: a patch in puppet-openstacklib that needs to be tested in puppet-nova.

This patch modifies the Rakefile to:
* clean spec_prep and spec_clean Rake tasks
* use openstack/puppet-openstack-integration/install_modules_unit.sh script
  to clone modules.
* do not use .fixtures.yaml file to clone modules and rely on
  zuul-cloner or git.
* Add openstack/ in gitignore so we never commit the
  puppet-openstack-integration repository (can happen when spec_clean
  did not run but you want to submit the patch anyway)
* Allow to run a custom Puppetfile if PUPPETFILE env is exported. It
  will allow people to test the module with the dependencies they like,
  feature we had with .fixtures.yaml.

Also add 'r10k' to Gemfile.

That way, we will be able to use zuul dependencies and run tests accross
modules like we do with functional testing.

Change-Id: I7b5af3ea6b21009a505a8b6c49086d339eaa43e5
2015-10-08 14:56:03 -07:00
Cody Herriges aba03fb675 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impacts:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
* spec: added rspec coverage report

Change-Id: Ie10f1467374a9c254515172f5ddc53f2e628c602
2015-08-06 20:34:34 +02:00
Sebastien Badia 1fbc7a2562 Update gitignore file
Change-Id: I08bea8f0445106be97c2efb17435331cbfc2b292
2013-12-23 19:05:17 +01:00
Cody Herriges 9c7add430a Puppet Forge release 2.0.0
Marks the commit that the branch stable/grizzly and the 2.0.0 tag is
  cut from.  Also adds a .gitignore with the pkg directory entry to
  prevent accidental committing of Forge artifacts to the repository.

Change-Id: Idd86f15ce7461158ad8c3a6487434df753913ed7
2013-06-24 21:21:50 -07:00