File tree Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Expand file tree Collapse file tree 1 file changed +24
-20
lines changed Original file line number Diff line number Diff line change 1
- param (
2
- [string ]$input
3
- )
1
+ npm install
4
2
5
- npm installs
3
+ $ErrorFound = $False
6
4
7
- If ( $input )
5
+ try
8
6
{
9
- npm run start-neo4j -- -- neorun.start.args= \' "$input"\'
10
- }
11
- else
12
- {
13
- npm run start-neo4j
14
- }
15
- npm test
7
+ If ($args.Length -eq 0 )
8
+ {
9
+ npm run start-neo4j
10
+ }
11
+ else
12
+ {
13
+ npm run start-neo4j -- -- neorun.start.args= " $args "
14
+ }
16
15
17
- if (-Not ($? )) # failed to execute npm test
18
- {
19
- $ErrorFound = $True
16
+ npm test
17
+ if (-Not ($? )) # failed to execute npm test
18
+ {
19
+ $ErrorFound = $True
20
+ }
20
21
}
21
-
22
- npm run stop-neo4j
23
-
24
- if ($ErrorFound -eq $True )
22
+ finally
25
23
{
26
- exit 1
24
+ npm run stop-neo4j
25
+ if ($ErrorFound -eq $True )
26
+ {
27
+ Write-Host " Exit with code 1"
28
+ exit 1
29
+ }
30
+ Write-Host " Exit with code 0"
27
31
}
You can’t perform that action at this time.
0 commit comments