1 Star 0 Fork 0

Hu/node-gdal-async

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
Momtchil Momtchev 提交于 2021-12-03 00:06 +08:00 . upgrade mocha to 9.1.2
.PHONY: clean clean-test build rebuild release test test-concurrent test-syntax authors
MOCHA_ARGS=test -R list --v8-expose-gc --require ./test/_common.js
all: build
authors:
git shortlog -se \
| perl -spe 's/^\s+\d+\s+//' \
| sed -e '/^BrandonReavis/d' \
| sed -e '/brianreavis/d' \
| sed -e '/^brandonreavis/d' \
> AUTHORS
clean: clean-test
@rm -rf ./build
@rm -rf lib/binding
clean-test:
@rm -f ./test/**/*.aux.xml
@rm -rf ./test/**/*.tmp*
@rm -rf ./test/data/**/*.tmp*
./node_modules/.bin/node-pre-gyp:
npm install @mapbox/node-pre-gyp
build: ./node_modules/.bin/node-pre-gyp
./node_modules/.bin/node-pre-gyp configure --silent
./node_modules/.bin/node-pre-gyp build -j max
build-shared: ./node_modules/.bin/node-pre-gyp
./node_modules/.bin/node-pre-gyp configure --shared_gdal=true --silent
./node_modules/.bin/node-pre-gyp build -j max
rebuild:
@make clean
@make
test: clean-test build
./node_modules/.bin/mocha $(MOCHA_ARGS)
@make clean-test
test-shared: clean-test build-shared
./node_modules/.bin/mocha $(MOCHA_ARGS)
@make clean-test
test-syntax:
npm run lint
test-concurrent: clean-test
node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha \
& node ./node_modules/.bin/_mocha
@make clean-test
release:
ifeq ($(strip $(version)),)
@echo "\033[31mERROR:\033[0;39m No version provided."
@echo "\033[1;30mmake release version=1.0.0\033[0;39m"
else
rm -rf node_modules
npm install
make test
@make authors
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' package.json
sed -i.bak 's/"version": "[^"]*"/"version": "$(version)"/' yuidoc.json
rm *.bak
git add .
git commit --allow-empty -a -m "Released $(version). [publish binary]"
git tag v$(version)
git push origin master
git push origin --tags
@echo "\033[32mv${version} tagged\033[0;39m"
@echo ""
@echo "IMPORTANT: Run 'npm publish' once Travis/AppVeyor complete their builds"
endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/hubodegit/node-gdal-async.git
git@gitee.com:hubodegit/node-gdal-async.git
hubodegit
node-gdal-async
node-gdal-async
main

搜索帮助