From 937922271a6039866ceee9800664cab3519ef3ef Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 16 Apr 2014 19:38:46 -0300 Subject: Configure travis to use prebuilt dependencies Dependencies are now hosted in a github repository and this brings two advantages: - Improved build time with travis since we no longer have to build each dependency - Less chance of build errors due to external servers being down since Github is now the single point of failure --- scripts/travis-setup.sh | 4 ++++ scripts/travis.sh | 6 ++++++ 2 files changed, 10 insertions(+) (limited to 'scripts') diff --git a/scripts/travis-setup.sh b/scripts/travis-setup.sh index e372a64b03..1520777841 100755 --- a/scripts/travis-setup.sh +++ b/scripts/travis-setup.sh @@ -44,3 +44,7 @@ wget -q -O - http://llvm.org/releases/3.4/clang+llvm-3.4-x86_64-unknown-ubuntu12 # apt-get -qq -y --no-install-recommends install clang-3.4 lldb-3.4 pip install cpp-coveralls --use-mirrors + +# install prebuilt dependencies +cd /opt +sudo git clone --depth=1 git://github.com/tarruda/neovim-deps diff --git a/scripts/travis.sh b/scripts/travis.sh index 94b900b520..ec8ae435af 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -17,6 +17,12 @@ check_and_report() { ) } +# setup environment for using the /opt/neovim-deps prefix +export PATH="/opt/neovim-deps/bin:$PATH" +export PKG_CONFIG_PATH="/opt/neovim-deps/lib/pkgconfig" +export DEPS_CMAKE_FLAGS="-DUSE_BUNDLED_LIBUV=OFF -DUSE_BUNDLED_LUAJIT=OFF -DUSE_BUNDLED_MSGPACK=OFF -DUSE_BUNDLED_LUAROCKS=OFF" +eval $(/opt/neovim-deps/bin/luarocks path) + # Travis reports back that it has 32-cores via /proc/cpuinfo, but it's not # what we really have available. According to their documentation, it only has # 1.5 virtual cores. -- cgit