浏览代码

ci: update buildkite's hook (#31298)

* remove unnecessary files

* unify the hooks's header

* don't use set -e in post-checkout

* shellcheck.sh include .buildkite/hooks

* xxx: make ci unhappy

* Revert "xxx: make ci unhappy"

This reverts commit a0fdfb40db8aa226a2669e474a06fb0f45f8c5c4.
Yihau Chen 2 年之前
父节点
当前提交
c9ca6e3461

+ 2 - 0
.buildkite/hooks/post-checkout

@@ -1,3 +1,5 @@
+#!/usr/bin/env bash
+
 CI_BUILD_START=$(date +%s)
 export CI_BUILD_START
 

+ 0 - 1
.buildkite/hooks/post-checkout.sh

@@ -1 +0,0 @@
-post-checkout

+ 2 - 1
.buildkite/hooks/post-command

@@ -1,4 +1,5 @@
-#!/bin/bash -e
+#!/usr/bin/env bash
+set -e
 
 source ci/upload-ci-artifact.sh
 

+ 0 - 1
.buildkite/hooks/post-command.sh

@@ -1 +0,0 @@
-post-command

+ 0 - 1
.buildkite/hooks/pre-command.sh

@@ -1 +0,0 @@
-pre-command

+ 1 - 1
ci/shellcheck.sh

@@ -6,7 +6,7 @@ set -e
 cd "$(dirname "$0")/.."
 (
   set -x
-  git ls-files -- '*.sh' ':(exclude)ci/semver_bash' \
+  git ls-files -- '.buildkite/hooks' '*.sh' ':(exclude)ci/semver_bash' \
     | xargs ci/docker-run.sh koalaman/shellcheck:v0.8.0 --color=always --external-sources --shell=bash
 )
 echo --- ok