Skip to content

Commit 8dea3d4

Browse files
committed
do check format first
1 parent 31eb766 commit 8dea3d4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

scripts/ciTest.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ if (process.argv.includes("-all")) {
3636
}
3737

3838
async function runTests() {
39+
if (formatTest) {
40+
cp.execSync("npm run checkFormat:all", {
41+
cwd: path.join(__dirname, ".."),
42+
stdio: [0, 1, 2],
43+
});
44+
45+
cp.execSync("bash scripts/check_format.sh", {
46+
cwd: path.join(__dirname, ".."),
47+
stdio: [0, 1, 2],
48+
});
49+
}
50+
3951
if (ounitTest) {
4052
cp.execSync(path.join(duneBinDir, "ounit_tests"), {
4153
stdio: [0, 1, 2],
@@ -84,18 +96,6 @@ async function runTests() {
8496
process.exit(1);
8597
}
8698
}
87-
88-
if (formatTest) {
89-
cp.execSync("npm run checkFormat", {
90-
cwd: path.join(__dirname, ".."),
91-
stdio: [0, 1, 2],
92-
});
93-
94-
cp.execSync("bash scripts/check_format.sh", {
95-
cwd: path.join(__dirname, ".."),
96-
stdio: [0, 1, 2],
97-
});
98-
}
9999
}
100100

101101
runTests();

0 commit comments

Comments
 (0)