浏览代码

Split off a few js tests

Jason Grout 5 年之前
父节点
当前提交
5a5f5736ca
共有 3 个文件被更改,包括 25 次插入3 次删除
  1. 7 1
      .github/workflows/tests.yml
  2. 1 0
      package.json
  3. 17 2
      scripts/ci_script.sh

+ 7 - 1
.github/workflows/tests.yml

@@ -7,11 +7,17 @@ jobs:
     name: Linux
     strategy:
       matrix:
-        group: [js, integrity, python, usage, docs, nonode]
+        group: [js, js:application, js:apputils, js:cells, integrity, python, usage, docs, nonode]
         python: [3.5, 3.8]
         exclude:
           - group: js
             python: 3.5
+          - group: js:application
+            python: 3.5
+          - group: js:apputils
+            python: 3.5
+          - group: js:cells
+            python: 3.5
           - group: integrity
             python: 3.5
           - group: docs

+ 1 - 0
package.json

@@ -75,6 +75,7 @@
     "test:examples": "python examples/test_examples.py",
     "test:firefox": "lerna run test:firefox --scope \"@jupyterlab/test-*\" --concurrency 1 --stream",
     "test:ie": "lerna run test:ie --scope \"@jupyterlab/test-*\" --concurrency 1 --stream",
+    "test:scope": "lerna run test --concurrency 1 --stream",
     "test:summary": "lerna run test --scope \"@jupyterlab/test-*\" --parallel --no-bail | grep -Ei '.* test.*(failed|passed|total|completed|skipped)' | sort",
     "tslint": "tslint --fix -c tslint.json --project tsconfigbase.json '**/*{.ts,.tsx}'",
     "tslint:check": "tslint -c tslint.json --project tsconfigbase.json '**/*{.ts,.tsx}'",

+ 17 - 2
scripts/ci_script.sh

@@ -17,11 +17,26 @@ if [[ $GROUP == python ]]; then
 fi
 
 
-if [[ $GROUP == js ]]; then
+if [[ $GROUP == js* ]]; then
 
     jlpm build:packages
     jlpm build:test
-    FORCE_COLOR=1 jlpm test --loglevel success
+
+    if [[ $GROUP == js:* ]]; then
+        # extract the group name
+        FORCE_COLOR=1 jlpm test:scope --loglevel success --scope "@jupyterlab/test-${GROUP#*:}"
+    else
+        FORCE_COLOR=1 jlpm test --loglevel success
+    fi
+
+    jlpm run clean
+fi
+
+if [[ $GROUP == jsscope ]]; then
+
+    jlpm build:packages
+    jlpm build:test
+    FORCE_COLOR=1 jlpm test:scope --loglevel success --scope $JSTESTGROUP
 
     jlpm run clean
 fi