Skip to content

Commit

Permalink
fix(cli): create command didn't work from release build
Browse files Browse the repository at this point in the history
Ugh, this is a straight-up facepalm. We really need to work out how
to run our test suite with the release binary.
  • Loading branch information
edvald committed Feb 24, 2020
1 parent 4bf8aab commit 5180604
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,12 @@ jobs:
- run:
name: Test that the binary works with the fancy logger enabled
command: garden-service/dist/linux-amd64/garden options
- run:
name: Test the create commands
command: |
mkdir -p tmp/create-test
garden-service/dist/linux-amd64/garden create project --root tmp/create-test --name test-project
garden-service/dist/linux-amd64/garden create module --root tmp/create-test --name test-module --type exec
- run:
name: Deploy demo-project with binary
# overriding CIRCLE_BUILD_NUM to avoid conflict with other tests
Expand Down
4 changes: 2 additions & 2 deletions garden-service/src/docs/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import { get, isFunction } from "lodash"
import { baseModuleSpecSchema } from "../config/module"
import handlebars = require("handlebars")
import { joi } from "../config/common"
import { GARDEN_SERVICE_ROOT } from "../constants"
import { STATIC_DIR } from "../constants"
import { indent, renderMarkdownTable, convertMarkdownLinks, NormalizedSchemaDescription } from "./common"
import { normalizeJoiSchemaDescription, JoiDescription } from "./joi-schema"

export const TEMPLATES_DIR = resolve(GARDEN_SERVICE_ROOT, "src", "docs", "templates")
export const TEMPLATES_DIR = resolve(STATIC_DIR, "docs", "templates")
const partialTemplatePath = resolve(TEMPLATES_DIR, "config-partial.hbs")

const maxWidth = 120
Expand Down

0 comments on commit 5180604

Please sign in to comment.