Skip to content

Commit

Permalink
general: add unity configuration to codereview.cfg
Browse files Browse the repository at this point in the history
This allows us to use cueckoo to trigger unity builds for CLs.

Change-Id: I6ec41786c28d10e56b3c57c3d18cc34006aff44c
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8881
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
  • Loading branch information
myitcv committed Mar 2, 2021
1 parent 452c7bd commit a0e1970
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
1 change: 1 addition & 0 deletions cmd/cue/cmd/testdata/script/cmd_github.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1263,6 +1263,7 @@ repository_dispatch: _#bashWorkflow & {
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
_#unity: "unity"
_#dispatchJob: _#job & {
_#type: string
"runs-on": _#linuxMachine
Expand Down
1 change: 1 addition & 0 deletions codereview.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
gerrit: https://cue-review.googlesource.com/cue
github: https://github.com/cuelang/cue
cue-unity: https://github.com/cue-sh/unity
14 changes: 9 additions & 5 deletions cue/testdata/eval/github.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ repository_dispatch: _#bashWorkflow & {
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
_#unity: "unity"
_#dispatchJob: _#job & {
_#type: string
"runs-on": _#linuxMachine
Expand Down Expand Up @@ -1399,12 +1400,13 @@ import "strings"
_#runtrybot(:ci): (string){ "runtrybot" }
_#mirror(:ci): (string){ "mirror" }
_#importpr(:ci): (string){ "importpr" }
_#unity(:ci): (string){ "unity" }
_#dispatchJob(:ci): (#struct){
"runs-on": (string){ "ubuntu-18.04" }
_#type(:ci): (string){ string }
if: (_|_){
// [incomplete] workflows.1.schema._#dispatchJob.if: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:137:14
// ./workflows.cue:138:14
}
}
name: (string){ "Repository Dispatch" }
Expand Down Expand Up @@ -2025,12 +2027,13 @@ import "strings"
_#runtrybot(:ci): (string){ "runtrybot" }
_#mirror(:ci): (string){ "mirror" }
_#importpr(:ci): (string){ "importpr" }
_#unity(:ci): (string){ "unity" }
_#dispatchJob(:ci): (#struct){
"runs-on": (string){ "ubuntu-18.04" }
_#type(:ci): (string){ string }
if: (_|_){
// [incomplete] repository_dispatch._#dispatchJob.if: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:137:14
// ./workflows.cue:138:14
}
}
name: (string){ "Repository Dispatch" }
Expand Down Expand Up @@ -2394,7 +2397,7 @@ import "strings"
name: (string){ "Set go build tags" }
run: (_|_){
// [incomplete] _#setGoBuildTags.run: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:283:10
// ./workflows.cue:284:10
}
}
_#installGo(:ci): (#struct){
Expand Down Expand Up @@ -2448,7 +2451,7 @@ import "strings"
_#cueckooCopybaraImage(:ci): (string){ "cueckoo/copybara:afc4ae03eed00b0c9d7415141cd1b5dfa583da7c" }
_#copybaraCmd(:ci): (_|_){
// [incomplete] _#copybaraCmd: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:350:2
// ./workflows.cue:351:2
_#cmd(:ci): (string){ string }
}
_#copybaraSteps(:ci): (#list){
Expand All @@ -2462,7 +2465,7 @@ import "strings"
name: (string){ string }
run: (_|_){
// [incomplete] _#copybaraSteps.1.run: invalid interpolation: non-concrete value string (type string):
// ./workflows.cue:350:2
// ./workflows.cue:351:2
_#cmd(:ci): (string){ string }
}
}
Expand Down Expand Up @@ -2624,6 +2627,7 @@ import "strings"
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
_#unity: "unity"
_#dispatchJob: (〈1;_#job〉 & {
_#type: string
"runs-on": 〈2;_#linuxMachine〉
Expand Down
1 change: 1 addition & 0 deletions internal/ci/workflows.cue
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ repository_dispatch: _#bashWorkflow & {
_#runtrybot: "runtrybot"
_#mirror: "mirror"
_#importpr: "importpr"
_#unity: "unity"

_#dispatchJob: _#job & {
_#type: string
Expand Down

0 comments on commit a0e1970

Please sign in to comment.