diff --git a/bin/integ b/bin/integ deleted file mode 100755 index c198a919ea..0000000000 --- a/bin/integ +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -e - -garden_root=$(cd `dirname $0` && cd $(git rev-parse --show-toplevel) && pwd) -garden_bin=${garden_root}/build/src/bin/garden.js - -chmod +x ${garden_bin} - -cd ${garden_root}/examples/hello-world - -GARDEN_LOGGER_TYPE=basic ${garden_bin} build --force diff --git a/examples/hello-world/.garden/local-config.yml b/examples/hello-world/.garden/local-config.yml new file mode 100644 index 0000000000..6372a8fbd8 --- /dev/null +++ b/examples/hello-world/.garden/local-config.yml @@ -0,0 +1,4 @@ +kubernetes: + username: hello + previous-usernames: + - hello diff --git a/package.json b/package.json index 42f1f2936c..7b7c2e25b7 100644 --- a/package.json +++ b/package.json @@ -113,6 +113,7 @@ "dev": "gulp build && cd build && npm link && cd .. && gulp watch", "dist": "gulp dist", "fix-format": "node_modules/.bin/tslint -p . --fix && node_modules/.bin/tsfmt -r", + "integ": "./test/integ/run", "lint": "gulp lint", "prepare": "npm run snyk-protect", "preversion": "npm test", @@ -129,7 +130,7 @@ "husky": { "hooks": { "commit-msg": "validate-commit-msg -p angular", - "pre-push": "npm test" + "pre-push": "npm test && npm run integ" } }, "snyk": true diff --git a/test/integ/run b/test/integ/run new file mode 100755 index 0000000000..ac34028ca3 --- /dev/null +++ b/test/integ/run @@ -0,0 +1,18 @@ +#!/usr/bin/env bash -eo pipefail + +here=$(cd `dirname $0` && pwd) +garden_root=$(cd ${here} && cd $(git rev-parse --show-toplevel) && pwd) +garden_bin=${garden_root}/build/src/bin/garden.js + +chmod +x ${garden_bin} + +cd ${garden_root}/examples/hello-world + +export GARDEN_LOGGER_TYPE=basic + +cd ${here}/basic-project +${garden_bin} scan +${garden_bin} build +${garden_bin} deploy +${garden_bin} test +${garden_bin} env config