Skip to content

Commit

Permalink
fix a number of things
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Jun 8, 2020
1 parent 7d153fd commit 317d835
Show file tree
Hide file tree
Showing 132 changed files with 1,132 additions and 90 deletions.
60 changes: 35 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,64 @@ version: 2.1
workflows:
main:
jobs:
- build:
- hof_ci:
context: SonarCloud

jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.14

working_directory: /go/src/github.com/{{ORG_NAME}}/{{REPO_NAME}}
# Build and test hof, in that order!
hof_ci:
machine: true

steps:
- checkout

# setup and dep fetches
# setup and prep fetch
- run: |
# install Cue
# curl -LO https://github.com/cuelang/cue/releases/download/v0.2.0/cue_0.2.0_Linux_x86_64.tar.gz
# tar -xf cue_0.2.0_Linux_x86_64.tar.gz
# sudo mv cue /usr/local/bin/cue
# Version info
GO_VER=1.14.4
CUE_VER=0.2.0
# Install Go
sudo rm -rf /usr/local/go
curl -LO https://dl.google.com/go/go${GO_VER}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz
# Install Cue
curl -LO https://github.com/cuelang/cue/releases/download/v${CUE_VER}/cue_${CUE_VER}_Linux_x86_64.tar.gz
tar -xf cue_${CUE_VER}_Linux_x86_64.tar.gz
sudo mv cue /usr/local/bin/cue
# fetch deps
# fetch Go dependencies
- run: |
go mod vendor
# This seems backwards, we ought to test, but...
# build Hof cli
- run: |
# build hof
echo "building cli"
go build -o hof cmd/hof/main.go
sudo mv hof /usr/local/bin/hof
sudo cp hof /usr/local/bin/hof
# fetch Cue dependencies
#- run: |
#./hof mod vendor cue

# Hof has a built in test command to facilitate running tests
# en masse, regardless of the language, technology, or framework
# you can also script all of the processes that go around a
# complete testing setup with tasks like collectiong and reporting coverage statistics
- run: |
# run all tests
hof test
hof test test.cue -s
# Upload reports now that they have been generated and collected
# Build our custom SonarCloud image
- run: |
# build our own sonar container
./ci/sc/build.sh
# run our own sonar containers
./ci/sc/run.sh
# Upload reports now that they have been generated and collected
- run: |
mkdir -p sonar-reports/go
# Scan and upload reports
# - sonarcloud/scan
./ci/sc/run.sh
orbs:
sonarcloud: sonarsource/sonarcloud@1.0.1
7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/add/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "add --help" prints help
call __hof add --help

### Test "add -h" prints help
call __hof add -h


9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/auth/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "auth --help" prints help
call __hof auth --help

### Test "auth -h" prints help
call __hof auth -h

### Test "auth" (without any args) prints help
call __hof auth

7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/bisect/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "bisect --help" prints help
call __hof bisect --help

### Test "bisect -h" prints help
call __hof bisect -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/branch/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "branch --help" prints help
call __hof branch --help

### Test "branch -h" prints help
call __hof branch -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/checkout/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "checkout --help" prints help
call __hof checkout --help

### Test "checkout -h" prints help
call __hof checkout -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/clone/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "clone --help" prints help
call __hof clone --help

### Test "clone -h" prints help
call __hof clone -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/cmd/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "cmd --help" prints help
call __hof cmd --help

### Test "cmd -h" prints help
call __hof cmd -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/commit/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "commit --help" prints help
call __hof commit --help

### Test "commit -h" prints help
call __hof commit -h


9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/config/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "config --help" prints help
call __hof config --help

### Test "config -h" prints help
call __hof config -h

### Test "config" (without any args) prints help
call __hof config

9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/context/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "context --help" prints help
call __hof context --help

### Test "context -h" prints help
call __hof context -h

### Test "context" (without any args) prints help
call __hof context

7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/create/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "create --help" prints help
call __hof create --help

### Test "create -h" prints help
call __hof create -h


9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/datamodel/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "datamodel --help" prints help
call __hof datamodel --help

### Test "datamodel -h" prints help
call __hof datamodel -h

### Test "datamodel" (without any args) prints help
call __hof datamodel

7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/def/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "def --help" prints help
call __hof def --help

### Test "def -h" prints help
call __hof def -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/delete/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "delete --help" prints help
call __hof delete --help

### Test "delete -h" prints help
call __hof delete -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/diff/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "diff --help" prints help
call __hof diff --help

### Test "diff -h" prints help
call __hof diff -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/doc/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "doc --help" prints help
call __hof doc --help

### Test "doc -h" prints help
call __hof doc -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/edit/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "edit --help" prints help
call __hof edit --help

### Test "edit -h" prints help
call __hof edit -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/eval/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "eval --help" prints help
call __hof eval --help

### Test "eval -h" prints help
call __hof eval -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/export/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "export --help" prints help
call __hof export --help

### Test "export -h" prints help
call __hof export -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/feedback/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "feedback --help" prints help
call __hof feedback --help

### Test "feedback -h" prints help
call __hof feedback -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/fetch/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "fetch --help" prints help
call __hof fetch --help

### Test "fetch -h" prints help
call __hof fetch -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/fmt/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "fmt --help" prints help
call __hof fmt --help

### Test "fmt -h" prints help
call __hof fmt -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/gen/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "gen --help" prints help
call __hof gen --help

### Test "gen -h" prints help
call __hof gen -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/get/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "get --help" prints help
call __hof get --help

### Test "get -h" prints help
call __hof get -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/hack/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "hack --help" prints help
call __hof hack --help

### Test "hack -h" prints help
call __hof hack -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/import/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "import --help" prints help
call __hof import --help

### Test "import -h" prints help
call __hof import -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/include/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "include --help" prints help
call __hof include --help

### Test "include -h" prints help
call __hof include -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/info/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "info --help" prints help
call __hof info --help

### Test "info -h" prints help
call __hof info -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/init/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "init --help" prints help
call __hof init --help

### Test "init -h" prints help
call __hof init -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/jump/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "jump --help" prints help
call __hof jump --help

### Test "jump -h" prints help
call __hof jump -h


9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/label/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "label --help" prints help
call __hof label --help

### Test "label -h" prints help
call __hof label -h

### Test "label" (without any args) prints help
call __hof label

9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/labelset/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "labelset --help" prints help
call __hof labelset --help

### Test "labelset -h" prints help
call __hof labelset -h

### Test "labelset" (without any args) prints help
call __hof labelset

7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/log/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "log --help" prints help
call __hof log --help

### Test "log -h" prints help
call __hof log -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/merge/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "merge --help" prints help
call __hof merge --help

### Test "merge -h" prints help
call __hof merge -h


9 changes: 9 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/mod/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Test "mod --help" prints help
call __hof mod --help

### Test "mod -h" prints help
call __hof mod -h

### Test "mod" (without any args) prints help
call __hof mod

7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/propose/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "propose --help" prints help
call __hof propose --help

### Test "propose -h" prints help
call __hof propose -h


7 changes: 7 additions & 0 deletions .hof/shadow/Cli/cmd/hof/cmd/hls/cli/publish/help.hls
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Test "publish --help" prints help
call __hof publish --help

### Test "publish -h" prints help
call __hof publish -h


Loading

0 comments on commit 317d835

Please sign in to comment.