Browse Source

clean up removesibling on travis

Steven Silvester 7 years ago
parent
commit
06db9b3d19
2 changed files with 9 additions and 1 deletions
  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