nexus site path corrected
[portal.git] / ecomp-portal-FE / client / bower_components / lodash / .travis.yml
1 language: node_js
2 sudo: false
3 node_js:
4   - "6"
5 env:
6   global:
7     - BIN="node" ISTANBUL=false OPTION=""
8     - SAUCE_LABS=false SAUCE_USERNAME="lodash"
9     - secure: "tg1JFsIFnxzLaTboFPOnm+aJCuMm5+JdhLlESlqg9x3fwro++7KCnwHKLNovhchaPe4otC43ZMB/nfWhDnDm11dKbm/V6HlTkED+dadTsaLxVDg6J+7yK41QhokBPJOxLV78iDaNaAQVYEirAgZ0yn8kFubxmNKV+bpCGQNc9yU="
10   matrix:
11     -
12     - BIN="phantomjs"
13     - ISTANBUL=true
14     - SAUCE_LABS=true
15 matrix:
16   include:
17     - node_js: "0.10"
18       env:
19     - node_js: "0.12"
20       env:
21     - node_js: "4"
22       env:
23     - node_js: "5"
24       env:
25 git:
26   depth: 10
27 branches:
28   only:
29     - master
30 notifications:
31   webhooks:
32     urls:
33       - https://webhooks.gitter.im/e/4aab6358b0e9aed0b628
34     on_success: change
35     on_failure: always
36 before_install:
37   - "nvm use $TRAVIS_NODE_VERSION"
38   - "npm set loglevel error"
39   - "npm set progress false"
40   - "npm i -g npm@\"^2.0.0\""
41   - |
42       PATTERN[0]="|\s*if\s*\(isHostObject\b[\s\S]+?\}(?=\n)|"
43       PATTERN[1]="|\s*if\s*\(enumerate\b[\s\S]+?\};\s*\}|"
44       PATTERN[2]="|\s*while\s*\([^)]+\)\s*\{\s*iteratee\(index\);\s*\}|"
45       PATTERN[3]="|\s*else\s*\{\s*assocSet\(data\b[\s\S]+?\}|"
46       PATTERN[4]="|\bcase\s+(?:dataView|promise|set|map|weakMap)CtorString:.+|g"
47       PATTERN[5]="|\bindex,\s*iterable\)\s*===\s*false\)[^}]+?(break;)|"
48       PATTERN[6]="|\s*if\s*\(\!lodashFunc\)\s*\{\s*return;\s*\}|"
49       PATTERN[7]="|\s*define\([\s\S]+?\);|"
50       PATTERN[8]="|\s*root\._\s*=\s*_;|"
51
52       if [ $ISTANBUL == true ]; then
53         set -e
54         for PTRN in ${PATTERN[@]}; do
55           node ./test/remove.js "$PTRN" ./lodash.js
56         done
57       fi
58   - "git clone --depth=10 --branch=master git://github.com/lodash/lodash-cli ./node_modules/lodash-cli"
59   - "mkdir -p ./node_modules/lodash-cli/node_modules/lodash && cd $_ && cp ../../../../lodash.js ./lodash.js && cp ../../../../package.json ./package.json"
60   - "cd ../../ && npm i && cd ../../"
61 script:
62
63 # Detect code coverage.
64   - "[ $ISTANBUL == false ]   || istanbul cover -x \"**/vendor/**\" --report lcovonly ./test/test.js -- ./lodash.js"
65   - "[ $ISTANBUL == false ]   || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/lcov.info | coveralls) || true"
66   - "[ $ISTANBUL == false ]   || [ $TRAVIS_SECURE_ENV_VARS == false ] || (cat ./coverage/coverage.json | codecov) || true"
67   
68 # Test in Node.js and PhantomJS.
69   - "[ $ISTANBUL == true ]    || node ./node_modules/lodash-cli/bin/lodash -o ./dist/lodash.js"
70   - "[ $ISTANBUL == true ]    || (node ./node_modules/lodash-cli/bin/lodash modularize exports=node -o ./ && node ./node_modules/lodash-cli/bin/lodash -d -o ./lodash.js)"
71   - "[ $ISTANBUL == true ]    || [ $SAUCE_LABS == true ] || cd ./test"
72   - "[ $ISTANBUL == true ]    || [ $SAUCE_LABS == true ] || $BIN $OPTION ./test.js ../lodash.js"
73   - "[ $ISTANBUL == true ]    || [ $SAUCE_LABS == true ] || [ $TRAVIS_SECURE_ENV_VARS == false ] || $BIN $OPTION ./test.js ../dist/lodash.min.js"
74
75 # Test in Sauce Labs.
76   - "[ $SAUCE_LABS == false ] || node ./node_modules/lodash-cli/bin/lodash core -o ./dist/lodash.core.js"
77   - "[ $SAUCE_LABS == false ] || npm run build"
78   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\"     runner=\"test/index.html?build=../dist/lodash.js&noglobals=true\"     tags=\"development\""
79   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash tests\"     runner=\"test/index.html?build=../dist/lodash.min.js&noglobals=true\" tags=\"production\""
80   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"lodash-fp tests\"  runner=\"test/fp.html?noglobals=true\"                                tags=\"development\""
81   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.js\"               tags=\"development,underscore\""
82   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"underscore tests\" runner=\"test/underscore.html?build=../dist/lodash.min.js\"           tags=\"production,underscore\""
83   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\"   runner=\"test/backbone.html?build=../dist/lodash.js\"                 tags=\"development,backbone\""
84   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\"   runner=\"test/backbone.html?build=../dist/lodash.min.js\"             tags=\"production,backbone\""
85   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\"   runner=\"test/backbone.html?build=../dist/lodash.core.js\"            tags=\"development,backbone\""
86   - "[ $SAUCE_LABS == false ] || $BIN ./test/saucelabs.js name=\"backbone tests\"   runner=\"test/backbone.html?build=../dist/lodash.core.min.js\"        tags=\"production,backbone\""