diff --git a/.travis.yml b/.travis.yml index 9b6a733..0d44a6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,60 @@ language: node_js +sudo: false node_js: - - "6" + - 6 + +cache: + directories: + - $HOME/.npm + - $HOME/.yarn-cache + - travis_ringojs + env: global: - - BIN="node" + - BIN=node + matrix: - - - BIN="phantomjs" - - BIN="ringo" + - BIN=phantomjs + - BIN=ringo + matrix: include: - - node_js: "4" + - node_js: 4 env: + git: depth: 10 + branches: only: - master + before_install: - - "nvm use $TRAVIS_NODE_VERSION" - - "npm set loglevel error" - - "npm set progress false" - - "npm i -g npm@\"^2.0.0\"" - - "[ $BIN != 'ringo' ] || (wget https://github.com/ringo/ringojs/releases/download/v0.11.0/ringojs-0.11.zip && sudo unzip ringojs-0.11 -d /opt && rm ringojs-0.11.zip)" - - "[ $BIN != 'ringo' ] || (sudo ln -s /opt/ringojs-0.11/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo)" + # Install RingoJS. + - | + export PATH=$PWD/travis_ringojs/ringojs-1.0.0-RC1/bin:$PATH + if [ ! -f "$(which ringo)" ]; then + rm -rf $PWD/travis_ringojs + mkdir -p $PWD/travis_ringojs + wget https://github.com/ringo/ringojs/releases/download/v1.0.0-rc1/ringojs-1.0.0-RC1.tar.gz + tar -xvf ringojs-1.0.0-RC1.tar.gz -C $PWD/travis_ringojs + fi + ringo -v + + # Use exact Node version. + - nvm use $TRAVIS_NODE_VERSION + + # Setup package managers. + - npm set loglevel error + - npm set progress false + - npm i -g yarn + - yarn -V + +install: + # Install packages. + - yarn + script: - - "cd test && $BIN ./test.js" + - cd test + - $BIN ./test.js diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..c573d7e --- /dev/null +++ b/yarn.lock @@ -0,0 +1,24 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 +docdown@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/docdown/-/docdown-0.4.1.tgz#0c433c0989c5f0d2e511351f9f897098fc3d877c" + dependencies: + lodash "^4.1.0" + +lodash@^4.1.0: + version "4.16.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.16.4.tgz#01ce306b9bad1319f2a5528674f88297aeb70127" + +qunit-extras@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/qunit-extras/-/qunit-extras-1.5.0.tgz#a64d1c5088ab20c01c0e1b04c72132c397b3964c" + +qunitjs@~1.22.0: + version "1.22.0" + resolved "https://registry.yarnpkg.com/qunitjs/-/qunitjs-1.22.0.tgz#374f0f51e4eaaf881284ebfa5fc48bef4c714b67" + +requirejs@^2.1.22: + version "2.3.2" + resolved "https://registry.yarnpkg.com/requirejs/-/requirejs-2.3.2.tgz#0eaa870d4c7db3b15dd1322e6b65b0388fc4b2c6" +