File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ script:
16
16
- ./scripts/lint.sh
17
17
- ./scripts/build.sh
18
18
- ./scripts/test.sh
19
- - ./scripts/format.sh && git diff --diff-filter=ACMRT --exit-code || (echo "Files not formatted; please run 'yarn format'." && exit 1)
19
+ - ./scripts/format.sh
20
20
21
21
after_script :
22
22
- ./scripts/cleanup.sh
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ set -ex -o pipefail
4
+
3
5
export NG_DEBUG=" true"
4
6
export CODE_TESTS_PATH=" $( pwd) /integration/out/e2e"
5
7
export CODE_TESTS_WORKSPACE=" $( pwd) /integration/project"
Original file line number Diff line number Diff line change @@ -7,3 +7,7 @@ find . -name "*.ts" \
7
7
-not -path " */node_modules/*" \
8
8
-not -path " */out/*" \
9
9
-exec yarn clang-format -i {} +
10
+
11
+ if [[ ! -z " ${CI_MODE} " ]]; then
12
+ git diff --diff-filter=ACMRT --exit-code || (echo " Files not formatted; please run 'yarn format'." && exit 1)
13
+ fi
You can’t perform that action at this time.
0 commit comments