-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.superDoitCI.solo
executable file
·63 lines (60 loc) · 1.74 KB
/
.superDoitCI.solo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env superdoit_solo
options
{
SuperDoitOptionalOptionWithNoArg long: 'notPassing'.
}
%
usage
-----
USAGE $basename [--help | -h] [--debug | -D]
DESCRIPTION
Run test suite for GsBasePharoCompatibility. Also used to run github ci runs.
OPTIONS
-h, --help display usage message
-D, --debug bring up topaz debugger in the event of a script error
EXAMPLES
$basename --help
$basename -h
$basename --debug
$basename -D
$basename # display detailed results for all tests
$basename --notPassing # display detailed results for only non passing tests
-----
%
specs
[
RwLoadSpecificationV2 {
#specName : 'GsTestStats',
#projectName : 'GsTestStats',
#gitUrl : 'https://github.com/dalehenrich/GsTestStats',
#revision : 'v1',
#projectSpecFile : 'rowan/project.ston',
#componentNames : [
'Samples'
],
#customConditionalAttributes : [],
#comment : 'test results tracking'
}
]
%
specUrls
file:$GITHUB_WORKSPACE/rowan/specs/GsBasePharoCompatibility.ston
%
doit
| testSuite runner reporter projectName |
projectName := 'GsBasePharoCompatibility'.
self preDoitSpecLoad: [:loadSpec |
loadSpec projectName = projectName
ifTrue: [
loadSpec
customConditionalAttributes: (loadSpec customConditionalAttributes, #('tests')) ].
loadSpec projectsHome: '$GITHUB_WORKSPACE/..' ].
testSuite := (Rowan projectNamed: projectName) testSuite.
runner := (Rowan globalNamed: 'GsTestStatsCITestRunner') runSuite: testSuite.
reporter := self notPassing
ifTrue: [ (Rowan globalNamed: 'GsTestStatsCITestReporterStdout') reportNotPassing: runner ]
ifFalse: [ (Rowan globalNamed: 'GsTestStatsCITestReporterStdout') report: runner ].
runner isSuccessful
ifFalse: [ self exitWithStatus: 1 ].
^ self noResult
%