mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
47 lines
2.2 KiB
YAML
47 lines
2.2 KiB
YAML
language: node_js
|
|
node_js:
|
|
- "0.6"
|
|
- "0.8"
|
|
- "0.10"
|
|
jdk:
|
|
- "openjdk6"
|
|
env:
|
|
global:
|
|
- BIN="node" BUILD=false MAKE=false
|
|
matrix:
|
|
- BUILD="compat"
|
|
- BUILD="modern"
|
|
- BUILD="legacy" MAKE=true
|
|
- BUILD="mobile" MAKE=true
|
|
- BIN="phantomjs" BUILD="compat"
|
|
- BIN="phantomjs" BUILD="legacy" MAKE=true
|
|
- BIN="phantomjs" BUILD="mobile" MAKE=true
|
|
matrix:
|
|
include:
|
|
- node_js: "0.10"
|
|
env:
|
|
- BIN="istanbul"
|
|
- BIN="ringo" BUILD="compat"
|
|
- BIN="narwhal" BUILD="compat"
|
|
git:
|
|
depth: 1
|
|
branches:
|
|
only:
|
|
- master
|
|
before_script:
|
|
- "npm install -g istanbul"
|
|
- "PACKAGE=ringojs-0.9; wget http://ringojs.org/downloads/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt && rm $PACKAGE.zip"
|
|
- "PACKAGE=ringojs-0.9; sudo ln -s /opt/$PACKAGE/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo"
|
|
- "PACKAGE=rhino-1.7R5; sudo mkdir /opt/$PACKAGE && sudo wget -O /opt/$PACKAGE/run.jar https://oss.sonatype.org/content/repositories/snapshots/org/mozilla/rhino/1.7R5-SNAPSHOT/$PACKAGE-20120629.144839-4.jar"
|
|
- "PACKAGE=rhino-1.7R5; echo -e '#!/bin/sh\\njava -jar /opt/rhino-1.7R5/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino"
|
|
- "PACKAGE=v0.3.2; wget https://github.com/280north/narwhal/archive/$PACKAGE.zip && sudo unzip $PACKAGE -d /opt/ && rm $PACKAGE.zip"
|
|
- "PACKAGE=narwhal-0.3.2; sudo ln -s /opt/$PACKAGE/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal"
|
|
script:
|
|
- "[ $BIN == 'istanbul' ] && $BIN cover ./test/test.js || true"
|
|
- "[ $MAKE != false ] && git clone --depth=1 --branch=master git://github.com/lodash/lodash-cli.git ./node_modules/lodash-cli || true"
|
|
- "[ $MAKE != false ] && mkdir ./node_modules/lodash-cli/node_modules && cd ./node_modules/lodash-cli/node_modules/ && ln -s ../../../ ./lodash && cd ../ && npm i . && cd ../../ || true"
|
|
- "[ $MAKE != false ] && node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js || true"
|
|
- "[ $BUILD != false ] && cd ./test || true"
|
|
- "[ $BUILD != false ] && $BIN ./test.js ../dist/lodash.$BUILD.js || true"
|
|
- "[ $BUILD != false ] && $BIN ./test.js ../dist/lodash.$BUILD.min.js || true"
|