forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathci_script.ps1
35 lines (26 loc) · 1.22 KB
/
ci_script.ps1
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
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
$ErrorActionPreference = 'stop'
python -c "from jupyterlab.commands import build_check; build_check()"
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
if ($Env:GROUP -eq "python") {
jupyter lab build --debug
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
# Run the python tests
py.test
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
}
if ($Env:GROUP -eq "integrity") {
# Run the integrity script first
jlpm run integrity --force
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
# Check yarn.lock file
jlpm check --integrity
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
# Run a browser check in dev mode
jlpm run build
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
python -m jupyterlab.browser_check --dev-mode
if ($LASTEXITCODE -ne 0) { throw "Command failed. See above errors for details" }
}
if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) { exit $LASTEXITCODE }