From a63378d40e32eb5ec7e6b110f249a11355631f3b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 Jun 2016 09:30:46 +0530 Subject: [PATCH] Use npm to install rapydscript-ng Also cache node_modules for build performance --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 31ca0e0e4f..0cfaeded71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,16 @@ sudo: false language: node_js nodejs: - 6 +cache: + directories: + - node_modules env: - SW=$HOME/sw PATH=$SW/bin:$PATH CFLAGS=-I$SW/include LDFLAGS=-L$SW/lib LD_LIBRARY_PATH=$SW/qt/lib:$SW/lib PKG_CONFIG_PATH=$SW/lib/pkgconfig QMAKE=$SW/qt/bin/qmake QT_PLUGIN_PATH=$SW/qt/plugins before_install: - curl https://download.calibre-ebook.com/travis/sw-linux.tar.xz | tar xJ -C $HOME - - git clone --depth 1 git://github.com/kovidgoyal/rapydscript-ng.git && ln -s `pwd`/rapydscript-ng/bin/rapydscript $SW/bin/rapydscript - - node --version && rapydscript --version + - npm install rapydscript-ng && ln -s `pwd`/rapydscript-ng/bin/rapydscript $SW/bin/rapydscript + - rapydscript --version - python setup.py bootstrap --ephemeral script: python setup.py test