Use npm to install rapydscript-ng

Also cache node_modules for build performance
This commit is contained in:
Kovid Goyal 2016-06-25 09:30:46 +05:30
parent 598205aad9
commit a63378d40e

View File

@ -2,13 +2,16 @@ sudo: false
language: node_js language: node_js
nodejs: nodejs:
- 6 - 6
cache:
directories:
- node_modules
env: 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 - 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: before_install:
- curl https://download.calibre-ebook.com/travis/sw-linux.tar.xz | tar xJ -C $HOME - 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 - npm install rapydscript-ng && ln -s `pwd`/rapydscript-ng/bin/rapydscript $SW/bin/rapydscript
- node --version && rapydscript --version - rapydscript --version
- python setup.py bootstrap --ephemeral - python setup.py bootstrap --ephemeral
script: python setup.py test script: python setup.py test