From 8549fb46bfae299d88dc185ce537a3cfc386aed1 Mon Sep 17 00:00:00 2001 From: Marshall Roch Date: Tue, 15 Aug 2017 19:54:37 -0700 Subject: [PATCH] [PR] [travis] build with Trusty Summary: jobs are starting to run on their own with `dist: trusty`. we should pin to either `dist: precise` (old) or `dist: trusty` (new). trusty seems to fail because (I assume) it has a newer `nvm`, which is not happy with the `PREFIX` that we export while setting up ocaml. I don't think `PREFIX` needs to be set anymore after it's installed, so let's try unsetting it. Closes https://github.com/facebook/flow/pull/4606 Differential Revision: D5633024 Pulled By: mroch fbshipit-source-id: fc06429cfe966676052e35df03ae6e893060d0b9 --- .travis.yml | 2 +- resources/travis/install_deps.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4fda7c30c86..19255d31c62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ sudo: false -dist: precise +dist: trusty env: global: diff --git a/resources/travis/install_deps.sh b/resources/travis/install_deps.sh index bcbc9d0bd2a..ee2d1e7680e 100644 --- a/resources/travis/install_deps.sh +++ b/resources/travis/install_deps.sh @@ -65,6 +65,8 @@ eval "$(opam config env)" echo "Installed packages:" ocamlfind list +unset PREFIX + printf "travis_fold:end:opam_installer\n" printf "travis_fold:start:yarn_install\nInstalling yarn dependencies\n"