File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,24 @@ test_ci() {
16
16
set -e
17
17
18
18
# This module fails CS jobs currently so this is more informational.
19
- circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-code-sniffer || true
20
- circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-unit-kernel-tests
19
+ if [ ! -z $1 ]
20
+ then
21
+ circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-code-sniffer || true
22
+ circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-unit-kernel-tests
21
23
22
- circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-behat-tests | tee behat.log
23
- # We need to skip colour codes
24
- egrep " 1 scenario \\ (.*1 passed" behat.log
24
+ circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-behat-tests | tee behat.log
25
+ # We need to skip colour codes
26
+ egrep " 1 scenario \\ (.*1 passed" behat.log
25
27
26
- # Test that a PHP FATAL error properly fails the job.
27
- git apply ../fixtures/behat-fail.patch
28
+ # Test that a PHP FATAL error properly fails the job.
29
+ git apply ../fixtures/behat-fail.patch
28
30
29
- # circleci doesn't bubble the exit code from behat :(
30
- circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-behat-tests | tee behat.log
31
- grep -A9 ' Behat tests failed' behat.log | tail -n 1 | grep ' + exit 1'
31
+ # circleci doesn't bubble the exit code from behat :(
32
+ circleci.sh -e CIRCLE_PROJECT_REPONAME=node build --job run-behat-tests | tee behat.log
33
+ grep -A9 ' Behat tests failed' behat.log | tail -n 1 | grep ' + exit 1'
32
34
33
- git reset --hard HEAD
35
+ git reset --hard HEAD
36
+ fi
34
37
}
35
38
36
39
sudo apt-get update -y
You can’t perform that action at this time.
0 commit comments