File tree Expand file tree Collapse file tree 1 file changed +42
-2
lines changed
Expand file tree Collapse file tree 1 file changed +42
-2
lines changed Original file line number Diff line number Diff line change 5959
6060
6161
62- # Report specific error message if mocha fails
62+ # Report specific error message if mocha for integration tests fails
6363- filters :
6464 ensure :
6565 value : " {{report_ci}}"
7171 state : " failed"
7272 allow_failure : false
7373 config :
74- env : JOB_PART=test
74+ env : JOB_PART=integration
7575 fetch : travis_job.log
7676 string_cleanup :
7777 id : logResult
@@ -97,6 +97,46 @@ rules:
9797
9898
9999
100+ # Report specific error message if mocha for unit tests fails
101+ - filters :
102+ ensure :
103+ value : " {{report_ci}}"
104+ equals : yep
105+ commit : true
106+ status :
107+ context : " continuous-integration/travis-ci/pr"
108+ travis_job :
109+ state : " failed"
110+ allow_failure : false
111+ config :
112+ env : JOB_PART=unit
113+ fetch : travis_job.log
114+ string_cleanup :
115+ id : logResult
116+ value : " {{{fetch}}}"
117+ remove :
118+ - " ^[\\ s\\ S]+?\\ d+\\ s+pending\n +"
119+ - " npm ERR!.*\n "
120+ - " \n *=============================================================================\n [\\ s\\ S]*"
121+ actions :
122+ comment :
123+ identifier : " ci-result"
124+ message : |-
125+ @{{commit.author.login}} Please review the following output log for errors:
126+
127+ ``` text
128+ {{{logResult}}}
129+ ```
130+
131+ Instead of updating these (outdated?) unit tests, you can choose to delete them and add integration tests instead. That would be great.
132+
133+ See [complete report here]({{status.target_url}}).
134+ set :
135+ id : report_ci
136+ value : nope
137+
138+
139+
100140# Report specific error message if linting fails
101141- filters :
102142 ensure :
You can’t perform that action at this time.
0 commit comments