Skip to content

Commit 29a5eab

Browse files
authored
Update grabl automation yaml syntax (#101)
## What is the goal of this PR? Recently we added the support for background `monitor` script. Therefore we change the foreground job script from `script` to `command`.
1 parent f477994 commit 29a5eab

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.grabl/automation.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ build:
2727
branch: master
2828
dependency-analysis:
2929
image: graknlabs-ubuntu-20.04
30-
script: |
30+
command: |
3131
bazel run @graknlabs_dependencies//grabl/analysis:dependency-analysis
3232
correctness:
3333
build:
3434
image: graknlabs-ubuntu-20.04
3535
#NPM packages can't be built under RBE
36-
script: |
36+
command: |
3737
bazel build //...
3838
bazel run @graknlabs_dependencies//tool/checkstyle:test-coverage
3939
bazel test $(bazel query 'kind(checkstyle_test, //...)')
4040
build-dependency:
4141
image: graknlabs-ubuntu-20.04
42-
script: |
42+
command: |
4343
dependencies/maven/update.sh
4444
git diff --exit-code dependencies/maven/artifacts.snapshot
4545
bazel run @graknlabs_dependencies//tool/unuseddeps:unused-deps -- list
@@ -49,7 +49,7 @@ build:
4949
branch: master
5050
image: graknlabs-ubuntu-20.04
5151
dependencies: [build, build-dependency]
52-
script: |
52+
command: |
5353
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
5454
export DEPLOY_MAVEN_PASSWORD=$REPO_GRAKN_PASSWORD
5555
bazel run --define version=$(git rev-parse HEAD) //grpc/java:deploy-maven -- snapshot
@@ -58,7 +58,7 @@ build:
5858
owner: graknlabs
5959
branch: master
6060
image: graknlabs-ubuntu-20.04
61-
script: |
61+
command: |
6262
curl https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
6363
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
6464
sudo apt update -y
@@ -74,7 +74,7 @@ build:
7474
branch: master
7575
image: graknlabs-ubuntu-20.04
7676
type: foreground
77-
script: |
77+
command: |
7878
pyenv global 3.6.10
7979
sudo unlink /usr/bin/python3
8080
sudo ln -s $(which python3) /usr/bin/python3
@@ -90,22 +90,22 @@ release:
9090
deployment:
9191
deploy-github:
9292
image: graknlabs-ubuntu-20.04
93-
script: |
93+
command: |
9494
pip install certifi
9595
export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN
9696
bazel run @graknlabs_dependencies//tool/release:create-notes -- protocol $(cat VERSION) ./RELEASE_TEMPLATE.md
9797
export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
9898
bazel run --define version=$(cat VERSION) //:deploy-github -- $GRABL_COMMIT
9999
deploy-maven-release:
100100
image: graknlabs-ubuntu-20.04
101-
script: |
101+
command: |
102102
export DEPLOY_MAVEN_USERNAME=$REPO_GRAKN_USERNAME
103103
export DEPLOY_MAVEN_PASSWORD=$REPO_GRAKN_PASSWORD
104104
bazel run --define version=$(cat VERSION) //grpc/java:deploy-maven -- release
105105
dependencies: [deploy-github]
106106
deploy-npm-release:
107107
image: graknlabs-ubuntu-20.04
108-
script: |
108+
command: |
109109
curl https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
110110
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
111111
sudo apt update -y
@@ -117,7 +117,7 @@ release:
117117
dependencies: [deploy-github]
118118
deploy-pip-release:
119119
image: graknlabs-ubuntu-20.04
120-
script: |
120+
command: |
121121
pyenv global 3.6.10
122122
sudo unlink /usr/bin/python3
123123
sudo ln -s $(which python3) /usr/bin/python3

0 commit comments

Comments
 (0)