Skip to content

Commit

Permalink
Merge branch 'bats-errata' into 'main'
Browse files Browse the repository at this point in the history
Bats errata - add submodules update and fix CI grep warning

See merge request xebis/repository-template!41
  • Loading branch information
bruzina committed Dec 4, 2021
2 parents 7886cf9 + e3039fe commit e097610
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ lint:
stage: validate
before_script:
- *default_before_script
- apk add bash git npm py-pip python3-dev shellcheck shfmt
- apk add bash git grep npm py-pip python3-dev shellcheck shfmt
- pip install gitlint pre-commit yamllint
- npm install -g markdownlint-cli
script:
Expand Down
6 changes: 5 additions & 1 deletion tests/update-repo.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ setup() {

@test "tools/update-repo basic test" {
function git() {
echo '.'
if [ "$1" = 'rev-parse' ]; then
echo '.'
else
echo -n
fi
}
export -f git

Expand Down
1 change: 1 addition & 0 deletions tools/update-repo
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ pushd "$REPO_DIR"
# Update repository dependencies
pre-commit autoupdate
pre-commit gc
git submodule update --remote --merge

popd

0 comments on commit e097610

Please sign in to comment.