瀏覽代碼

Remove yarn

Saul Shanabrook 6 年之前
父節點
當前提交
f5fa71e881
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. 5 0
      .travis.yml
  2. 5 0
      scripts/travis_install.sh

+ 5 - 0
.travis.yml

@@ -1,3 +1,8 @@
+# need sudo to remove yarn from path
+# https://docs.travis-ci.com/user/reference/overview/#Virtualisation-Environment-vs-Operating-System
+sudo: required
+dist: trusty
+
 language: python
 python: 3.6
 cache:

+ 5 - 0
scripts/travis_install.sh

@@ -5,6 +5,11 @@
 set -ev
 set -o pipefail
 
+# Building should work without yarn installed globally, so uninstall the
+# global yarn that Travis installs automatically.
+sudo rm -rf $(which yarn)
+! yarn
+
 # create jupyter base dir (needed for config retrieval)
 mkdir ~/.jupyter