Commit Graph

5 Commits

Author SHA1 Message Date
Mauricio Lima
2c34214388 Remove unecessary blank lines
TrivialFix

Change-Id: I1f03d428c380dfdbde5ef33e7ea43cbf5e9154ce
2016-05-02 07:44:29 -04:00
Chen Zhiwei
76c1fe6371 Change the default shell to bash
Unify the shell to bash in all Kolla scripts.

Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a
Implements: blueprint use-bash-shell
2015-04-27 13:26:37 +08:00
Martin André
bfe0d0e0e9 Fix validate-all-yaml.sh to check for files with yml extension
YAML files can have .yaml or .yml extension. Make `validate-all-yaml.sh`
check for *.yml files in addition to *.yaml files since we now have some
of these in our source tree.

This should help to prevent bogus YAML files to land in the repository.

Change-Id: Id59273680fc2424f7b636033b1d641efcaaeba22
2015-04-14 13:32:09 +09:00
Martin André
13799455c2 Make scripts work on latest Atomic images
Remove git and jq dependency in most scripts, allowing to run them on
latest atomic images, or even distribute Kolla in the form of tarball.

The only remainings of git dependency are in the git pre-commit hook,
and in the image build scripts. We can remove the latter one and have
the scripts running in degraded mode if we really want to.

I opted for a python based approach to finding the top-level directory
for portability, ensuring consistent result on Linux and BSD, including
OSX.

Change-Id: I987174032d11b2e9d6a993c563b5dc877c15dd2d
2015-01-19 10:32:49 +09:00
Lars Kellogg-Stedman
bfbf1b8c9b add better validation checks (part 1)
This patch adds a script for validating YAML files, and replaces the
existing JSON checks with one largely identical to the YAML check.

This also provides a script that can be installed as a pre-commit hook
that will perform this checks when you commit changes.  You can install
the hook by running tools/pre-commit-hook --install.

Change-Id: Ib4742a9db062362cfa61d669c691151bc1ca376c
2014-10-14 15:21:22 -04:00