| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,16 +15,22 @@ before_install: | |||
| 15 | 15 | - nvm use $NODE_VERSION | |
| 16 | 16 | - if [ $TRAVIS_OS_NAME == "linux" ]; then | |
| 17 | 17 | sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; | |
| 18 | - sudo apt-get -qq update; | ||
| 19 | - sudo apt-get -qq install gcc-4.8 g++-4.8 lcov; | ||
| 20 | - sudo rm /usr/bin/gcov /usr/bin/g++; | ||
| 21 | - sudo ln -s /usr/bin/gcov-4.8 /usr/bin/gcov; | ||
| 22 | - sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++; | ||
| 23 | - export CC="gcc-4.8"; | ||
| 24 | - export CXX="g++-4.8"; | ||
| 18 | + sudo apt-get update; | ||
| 19 | + sudo apt-get install gcc-4.9 g++-4.9 lcov; | ||
| 20 | + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20; | ||
| 21 | + sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20; | ||
| 22 | + sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 20; | ||
| 23 | + sudo update-alternatives --config gcc; | ||
| 24 | + sudo update-alternatives --config g++; | ||
| 25 | + sudo update-alternatives --config gcov; | ||
| 26 | + wget http://downloads.sourceforge.net/ltp/lcov-1.10.tar.gz; | ||
| 27 | + tar xvfz lcov-1.10.tar.gz; | ||
| 28 | + sudo cp -v lcov-1.10/bin/{lcov,genpng,gendesc,genhtml,geninfo} /usr/bin/; | ||
| 29 | + sudo chmod 777 /usr/bin/lcov /usr/bin/genhtml /usr/bin/geninfo /usr/bin/genpng /usg/bin/gendesc; | ||
| 30 | + rm -rf lcov-1.10.tar.gz lcov-1.10; | ||
| 31 | + sudo mv -v `which gcov-4.8` `which gcov`; | ||
| 25 | 32 | export GYP_DEFINES="coverage=1"; | |
| 26 | 33 | export JOBS=4; | |
| 27 | - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90; | ||
| 28 | 34 | fi | |
| 29 | 35 | - BUILD_ONLY=true npm install | |
| 30 | 36 | # This is a random private key used purely for testing. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,8 +31,6 @@ NodeGit | |||
| 31 | 31 | </tbody> | |
| 32 | 32 | </table> | |
| 33 | 33 | ||
| 34 | - ***NOTE: NodeGit currently does not work with [iojs on windows](https://github.com/rvagg/pangyp/issues/4)*** | ||
| 35 | - | ||
| 36 | 34 | **Stable: 0.3.3** | |
| 37 | 35 | ||
| 38 | 36 | ## Have a problem? Come chat with us! ## | |
@@ -63,6 +61,8 @@ dependencies. | |||
| 63 | 61 | npm install nodegit | |
| 64 | 62 | ``` | |
| 65 | 63 | ||
| 64 | + **Note: NodeGit will only work on io.js Windows with [the iojs binary instead of node](https://github.com/rvagg/pangyp/issues/4).** | ||
| 65 | + | ||
| 66 | 66 | If you encounter problems while installing, you should try the Building from | |
| 67 | 67 | source instructions below. | |
| 68 | 68 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,12 +84,12 @@ | |||
| 84 | 84 | "scripts": { | |
| 85 | 85 | "lint": "jshint lib test/tests examples lifecycleScripts", | |
| 86 | 86 | "coveralls": "cat ./test/coverage/merged.lcov | coveralls", | |
| 87 | - "cppcov": "mkdir -p test/coverage/cpp && lcov --capture --directory build/Release/obj.target/nodegit/src --output-file test/coverage/cpp/lcov.info", | ||
| 87 | + "cppcov": "mkdir -p test/coverage/cpp && lcov --gcov-tool $(which gcov) --capture --directory build/Release/obj.target/nodegit/src --output-file test/coverage/cpp/lcov.info", | ||
| 88 | 88 | "mergecov": "lcov-result-merger 'test/**/*.info' 'test/coverage/merged.lcov' && genhtml test/coverage/merged.lcov --output-directory test/coverage/report", | |
| 89 | 89 | "cov": "npm run cppcov && npm run mergecov", | |
| 90 | 90 | "mocha": "mocha test/runner test/tests", | |
| 91 | 91 | "mochaDebug": "mocha --debug-brk test/runner test/tests", | |
| 92 | - "test": "npm run lint && node --expose-gc test", | ||
| 92 | + "test": "npm run lint && iojs --expose-gc test || node --expose-gc test", | ||
| 93 | 93 | "generateJson": "node generate/scripts/generateJson", | |
| 94 | 94 | "generateNativeCode": "node generate/scripts/generateNativeCode", | |
| 95 | 95 | "generateMissingTests": "node generate/scripts/generateMissingTests", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments