Skip to content

Commit 19851a8

Browse files
committed
Ensure that semver files are sorted as part of CI
1 parent f38130b commit 19851a8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ci/style.sh

100644100755
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
#!/usr/bin/env sh
1+
#!/bin/sh
22

33
set -ex
44

5-
rustc ci/style.rs && ./style src
6-
5+
rustc ci/style.rs && ./style v
76
rustup toolchain install nightly -c rustfmt --allow-downgrade
87
rustup override set nightly
98
command -v rustfmt
@@ -18,3 +17,13 @@ else
1817
exit 1
1918
fi
2019

20+
for file in libc-test/semver/*.txt; do
21+
case "$file" in
22+
*TODO*) continue ;;
23+
esac
24+
25+
if ! sort -C "$file"; then
26+
echo "Unsorted semver file $file"
27+
exit 1
28+
fi
29+
done

0 commit comments

Comments
 (0)