Skip to content

Commit 482aebd

Browse files
committed
Add run-build tests, plus fix source issue for run-tests
1 parent 2533f5a commit 482aebd

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.circleci/test-deploy.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
# Integ tests for matlab/run-tests
138138
- matlab/run-tests:
139139
source-folder: src
140+
startup-options: -logfile console.log
140141
- matlab/run-tests:
141142
test-results-junit: test-results/matlab/results.xml
142143
code-coverage-cobertura: code-coverage/coverage.xml
@@ -151,9 +152,16 @@ jobs:
151152
- matlab/run-tests:
152153
test-results-junit: test-results/matlab/filterdtagresult.xml
153154
select-by-tag: FILTERED
154-
- matlab/run-tests:
155-
startup-options: -logfile console.log
156155

156+
- run:
157+
name: Verify tests ran with startup options
158+
command: |
159+
set -e
160+
grep StartupTest console.log
161+
grep FirstTest console.log
162+
grep simpleTest console.log
163+
rm console.log
164+
shell: bash
157165
- run:
158166
name: Verify test results file was created
159167
command: |
@@ -194,16 +202,6 @@ jobs:
194202
grep -v simpleTest test-results/matlab/filterdtagresult.xml
195203
shell: bash
196204

197-
- run:
198-
name: Verify tests ran with startup options
199-
command: |
200-
set -e
201-
grep StartupTest console.log
202-
grep FirstTest console.log
203-
grep simpleTest console.log
204-
rm console.log
205-
shell: bash
206-
207205
- run:
208206
name: Set up diary for logging
209207
command: |
@@ -376,16 +374,22 @@ jobs:
376374
rm buildlog.txt
377375
shell: bash
378376
# run build with default tasks
379-
- matlab/run-build
377+
- matlab/run-build:
378+
startup-options: -logfile console.log
380379
- run:
381380
name: Verify that correct tasks appear in buildlog.txt
382381
command: |
383382
set -e
384383
grep "building" buildlog.txt
384+
grep "building" console.log
385385
grep "testing" buildlog.txt
386+
grep "testing" console.log
386387
! grep "deploying" buildlog.txt
388+
! grep "deploying" console.log
387389
! grep "checking" buildlog.txt
390+
! grep "checking" console.log
388391
rm buildlog.txt
392+
rm console.log
389393
shell: bash
390394

391395
workflows:

0 commit comments

Comments
 (0)