From cd8b9a14a4e8531d31668370321e186d092ac664 Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Thu, 13 Oct 2016 12:32:33 +0800 Subject: [PATCH] Update travis --- .travis.yml | 19 +++++++++++++++++-- ...timeselect.spec.js => time-select.spec.js} | 0 2 files changed, 17 insertions(+), 2 deletions(-) rename test/unit/specs/{timeselect.spec.js => time-select.spec.js} (100%) diff --git a/.travis.yml b/.travis.yml index 543f504a7..6276b8b9c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,20 @@ sudo: false language: node_js node_js: - - "5" -script: make dist + - 5 +cache: + bundler: true + directories: + - node_modules # NPM packages + - travis_phantomjs +before_install: + # Upgrade PhantomJS to v2.1.1. + - "export PHANTOMJS_VERSION=2.1.1" + - "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH" + - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi" + - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi" + - "if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi" + - "phantomjs --version" +script: + - "make dist" + - "npm t" diff --git a/test/unit/specs/timeselect.spec.js b/test/unit/specs/time-select.spec.js similarity index 100% rename from test/unit/specs/timeselect.spec.js rename to test/unit/specs/time-select.spec.js