Skip to content

Commit

Permalink
Update dog fooding and lint scripts
Browse files Browse the repository at this point in the history
Note: this change is intended to break the CI build
  • Loading branch information
Ryuichi Saito committed Jun 17, 2017
1 parent 930f030 commit 33f13d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
16 changes: 14 additions & 2 deletions dogFooding.sh
Expand Up @@ -3,7 +3,19 @@
set -e

make
for f in $(find . -regex ".*\.swift")

allFiles=""

for f in $(find . -regex "\.\/Sources.*\.swift")
do
.build/debug/swift-ast $@ $f
allFiles="$allFiles $f"
done

for f in $(find . -regex "\.\/Tests.*\.swift")
do
allFiles="$allFiles $f"
done

allFiles="$allFiles Package.swift"

.build/debug/swift-ast $@ $allFiles
13 changes: 7 additions & 6 deletions lint.sh
Expand Up @@ -8,17 +8,18 @@ cd .swift_lint
make
cd ..

allFiles=""

for f in $(find . -regex "\.\/Sources.*\.swift")
do
echo $f
.swift_lint/.build/debug/swift-lint $@ $f
allFiles="$allFiles $f"
done

for f in $(find . -regex "\.\/Tests.*\.swift")
do
echo $f
.swift_lint/.build/debug/swift-lint $@ $f
allFiles="$allFiles $f"
done

echo "Package.swift"
.swift_lint/.build/debug/swift-lint $@ Package.swift
allFiles="$allFiles Package.swift"

.swift_lint/.build/debug/swift-lint $@ $allFiles

0 comments on commit 33f13d9

Please sign in to comment.