-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis: Implement yaml checking for Snappy
This patch enables Travis CI to check the snapcraft.yaml files for any potential problems. Yamllint installation is implemented in the script which, might be sane to be moved to .travis.yml instead. Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
- Loading branch information
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env sh | ||
# This script checks the snapcraft configuration YAML files | ||
# according to the rules at /snappy/.yamllint | ||
set -o errexit -o nounset | ||
|
||
pip install --user yamllint | ||
yamllint --version | ||
|
||
for snapcraft_config in snappy/poedit*/snap/snapcraft.yaml ; do | ||
yamllint --config-file snappy/.yamllint "${snapcraft_config}" | ||
done |