Browse Source

Merge pull request #643 from LinusU/drop-make

drop make
v1.x
Linus Unnebäck 9 years ago
parent
commit
5a79f7d7fa
  1. 2
      .travis.yml
  2. 19
      Makefile
  3. 7
      package.json

2
.travis.yml

@ -21,4 +21,4 @@ before_install:
- sh install
- npm explore npm -g -- npm install node-gyp@latest
after_script:
- make benchmark
- npm run benchmark

19
Makefile

@ -1,19 +0,0 @@
ADDON = build/Release/canvas.node
$(ADDON): src/*.cc
npm install
test: $(ADDON)
@./node_modules/.bin/mocha test/*.test.js
test-server: $(ADDON)
@node test/server.js
benchmark:
@node benchmarks/run.js
clean:
rm -fr build
.PHONY: test test-server benchmark clean

7
package.json

@ -21,7 +21,12 @@
"homepage": "https://github.com/Automattic/node-canvas",
"repository": "git://github.com/Automattic/node-canvas.git",
"scripts": {
"test": "make test"
"prebenchmark": "node-gyp build",
"benchmark": "node benchmarks/run.js",
"pretest": "node-gyp build",
"test": "mocha test/*.test.js",
"pretest-server": "node-gyp build",
"test-server": "node test/server.js"
},
"dependencies": {
"nan": "^2.0.9"

Loading…
Cancel
Save