浏览代码

clean up removesibling on travis

Steven Silvester 7 年之前
父节点
当前提交
06db9b3d19
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 8 1
      buildutils/src/remove-sibling.ts
  2. 1 0
      scripts/travis_script.sh

+ 8 - 1
buildutils/src/remove-sibling.ts

@@ -44,4 +44,11 @@ fs.writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2) + '\n');
 fs.removeSync(path.dirname(packagePath));
 
 // Update the core jupyterlab build dependencies.
-utils.run('npm run integrity');
+try {
+  utils.run('npm run integrity');
+} catch (e) {
+  if (!process.env.TRAVIS_BRANCH) {
+    console.error(e);
+    process.exit(1);
+  }
+}

+ 1 - 0
scripts/travis_script.sh

@@ -114,6 +114,7 @@ if [[ $GROUP == other ]]; then
     npm run build
     npm run removesibling extension
     npm run build
+    npm run integrity
 
     # Test cli tools
     npm run get:dependency mocha