Skip to content

Commit c179e2b

Browse files
committed
Attempt using iojs first and then try ndoe
1 parent 89b541f commit c179e2b

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@ before_install:
1515
- nvm use $NODE_VERSION
1616
- if [ $TRAVIS_OS_NAME == "linux" ]; then
1717
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`;
2532
export GYP_DEFINES="coverage=1";
2633
export JOBS=4;
27-
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90;
2834
fi
2935
- BUILD_ONLY=true npm install
3036
# This is a random private key used purely for testing.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ NodeGit
3131
</tbody>
3232
</table>
3333

34-
***NOTE: NodeGit currently does not work with [iojs on windows](https://github.com/rvagg/pangyp/issues/4)***
35-
3634
**Stable: 0.3.3**
3735

3836
## Have a problem? Come chat with us! ##
@@ -63,6 +61,8 @@ dependencies.
6361
npm install nodegit
6462
```
6563

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+
6666
If you encounter problems while installing, you should try the Building from
6767
source instructions below.
6868

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@
8484
"scripts": {
8585
"lint": "jshint lib test/tests examples lifecycleScripts",
8686
"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",
8888
"mergecov": "lcov-result-merger 'test/**/*.info' 'test/coverage/merged.lcov' && genhtml test/coverage/merged.lcov --output-directory test/coverage/report",
8989
"cov": "npm run cppcov && npm run mergecov",
9090
"mocha": "mocha test/runner test/tests",
9191
"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",
9393
"generateJson": "node generate/scripts/generateJson",
9494
"generateNativeCode": "node generate/scripts/generateNativeCode",
9595
"generateMissingTests": "node generate/scripts/generateMissingTests",

0 commit comments

Comments
 (0)