From af5c9504df333878c14483fd249c40a82710aad8 Mon Sep 17 00:00:00 2001 From: Max Arturo AS Date: Tue, 11 Oct 2016 21:23:11 -0500 Subject: [PATCH] Make knex version variables in makefile (#59) * Release 0.3.5 (#53) * Count tests (#37) Makefile add babel global variable Package upgrade to latest stable bookshelf * Add tests for knex#raw (#41) * bookshelf transactions tests (#43) * Add tests for knex#raw * Add bookshelf transaction test * Feature/test databases (#44) * Restructor tests to allow for live db tests * Delete data.db * Adjust readme * Test/bookshelf relationships (#48) * Add bookshelf relationship test example * Remove only * Add knex 0.12 mock functionality (#52) * Release/0.3.4 (#45) * Count tests (#37) Makefile add babel global variable Package upgrade to latest stable bookshelf * Add tests for knex#raw (#41) * bookshelf transactions tests (#43) * Add tests for knex#raw * Add bookshelf transaction test * Feature/test databases (#44) * Restructor tests to allow for live db tests * Delete data.db * Adjust readme * Remove deprecated db.VERSION call, add knex 0.12 mock functionality, bump to bookshelf 0.10 * Bump version: 0.3.4 => 0.3.5 * Remove duplicate import, lint cleanup * Release/0.3.7 (#58) * Fix README test urls (#56) * Release 0.3.5 (#53) * Count tests (#37) Makefile add babel global variable Package upgrade to latest stable bookshelf * Add tests for knex#raw (#41) * bookshelf transactions tests (#43) * Add tests for knex#raw * Add bookshelf transaction test * Feature/test databases (#44) * Restructor tests to allow for live db tests * Delete data.db * Adjust readme * Test/bookshelf relationships (#48) * Add bookshelf relationship test example * Remove only * Add knex 0.12 mock functionality (#52) * Release/0.3.4 (#45) * Count tests (#37) Makefile add babel global variable Package upgrade to latest stable bookshelf * Add tests for knex#raw (#41) * bookshelf transactions tests (#43) * Add tests for knex#raw * Add bookshelf transaction test * Feature/test databases (#44) * Restructor tests to allow for live db tests * Delete data.db * Adjust readme * Remove deprecated db.VERSION call, add knex 0.12 mock functionality, bump to bookshelf 0.10 * Bump version: 0.3.4 => 0.3.5 * Remove duplicate import, lint cleanup * Fix README test urls * AcquireConnection returns a promise in 0.12.3 (#57) * Bump version number * Make knex version variables in makefile --- Makefile | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 4d63b94..d5f5979 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ ESLINT = node_modules/.bin/eslint LAB = ./node_modules/lab/bin/lab BABEL = ./node_modules/.bin/babel +KNEX_VERSIONS = 0.8 0.9 0.10 0.11 0.12 -.PHONY: clean test lint lint-quiet watch build test-debug +.PHONY: clean test lint lint-quiet watch build test-debug $(KNEX_VERSIONS) default: build @@ -12,16 +13,10 @@ clean: test: ${LAB} -v -I __BluebirdErrorTypes__,Set,Intl,Map,__core-js_shared__,System,Observable,regeneratorRuntime,asap,core,_babelPolyfill ./test/init.js -test-suite: - npm i knex@0.8 - make test - npm i knex@0.9 - make test - npm i knex@0.10 - make test - npm i knex@0.11 - make test - npm i knex@0.12 +test-suite: $(KNEX_VERSIONS) + +$(KNEX_VERSIONS): + npm i knex@$@ make test debug: