Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Use yarn.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Oct 16, 2016
1 parent 7db81b5 commit 7fbc576
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 12 deletions.
70 changes: 58 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,74 @@
language: node_js
sudo: false
node_js:
- "6"
- 6

cache:
directories:
- $HOME/.npm
- $HOME/.yarn-cache
- travis_phantomjs
- 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)"
# Upgrade PhantomJS.
- |
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
wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2
tar -xvf phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs
fi
phantomjs -v
# Install RingoJS.
- |
export RINGOJS_VERSION=0.11
export PATH=$PWD/travis_ringojs/ringojs-$RINGOJS_VERSION/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/v$RINGOJS_VERSION.0/ringojs-$RINGOJS_VERSION.tar.gz
tar -xvf ringojs-$RINGOJS_VERSION.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
24 changes: 24 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7fbc576

Please sign in to comment.