diff --git a/.travis.yml b/.travis.yml index 86fb7332e..ac8631a1e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,13 +12,16 @@ env: - BUILD="modern" - BUILD="legacy" - BUILD="mobile" - - BIN="phantomjs" BUILD="compat" - - BIN="phantomjs" BUILD="legacy" - - BIN="phantomjs" BUILD="mobile" matrix: include: - node_js: "0.10" env: BIN="istanbul" + - node_js: "0.10" + env: BIN="phantomjs" BUILD="compat" + - node_js: "0.10" + env: BIN="phantomjs" BUILD="legacy" + - node_js: "0.10" + env: BIN="phantomjs" BUILD="mobile" - node_js: "0.10" env: BIN="narwhal" BUILD="compat" - node_js: "0.10" @@ -66,14 +69,14 @@ before_install: - "[ $MAKE == false ] || node ./node_modules/lodash-cli/bin/lodash $BUILD -o ./dist/lodash.$BUILD.js" script: - "[ $BIN != 'istanbul' ] || ($BIN cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./dist/lodash.js && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage)" - - "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) || cd ./test" - - "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js" - - "([ $SAUCE_LABS != false ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js" - - "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || node ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production\"" - - "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) || node ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production,ie-compat\" compatMode=7" - - "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || node ./test/saucelabs.js runner=\"test/index.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development\"" - - "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) || node ./test/saucelabs.js runner=\"test/index.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,ie-compat\" compatMode=7" - - "[ $SAUCE_LABS == false ] || node ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=lodash-$BUILD\" tags=\"$BUILD,production,backbone\"" - - "[ $SAUCE_LABS == false ] || node ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,backbone\"" - - "[ $SAUCE_LABS == false ] || node ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=lodash-$BUILD\" tags=\"$BUILD,production,underscore\"" - - "[ $SAUCE_LABS == false ] || node ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,underscore\"" + - "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || cd ./test" + - "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.js" + - "([ $SAUCE_LABS == true ] || [ $BUILD == false ]) || $BIN $OPTION ./test.js ../dist/lodash.$BUILD.min.js" + - "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production\"" + - "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=lodash-$BUILD\" tags=\"$BUILD,production,ie-compat\" compatMode=7" + - "([ $SAUCE_LABS == false ] || [ $BUILD == 'underscore' ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development\"" + - "([ $SAUCE_LABS == false ] || [ $COMPAT == false ]) || $BIN ./test/saucelabs.js runner=\"test/index.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,ie-compat\" compatMode=7" + - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=lodash-$BUILD\" tags=\"$BUILD,production,backbone\"" + - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\" runner=\"test/backbone.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,backbone\"" + - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=lodash-$BUILD\" tags=\"$BUILD,production,underscore\"" + - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.$BUILD.js\" tags=\"$BUILD,development,underscore\"" diff --git a/test/test.js b/test/test.js index 2db73dd9b..143de877a 100644 --- a/test/test.js +++ b/test/test.js @@ -3843,11 +3843,13 @@ args2 = (function() { return arguments; }(1, 2, 3)), args3 = (function() { return arguments; }(1, 2)); + strictEqual(_.isEqual(args1, args2), true); + if (!isPhantomPage) { - strictEqual(_.isEqual(args1, args2), true); strictEqual(_.isEqual(args1, args3), false); - } else { - skipTest(2); + } + else { + skipTest(); } });