1 Star 0 Fork 0

理想三旬/self-hosted

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cloudbuild.yaml 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Ethan Smith 提交于 2022-10-22 04:46 +08:00 . Add pre-commit config (#1738)
steps:
- name: "gcr.io/$PROJECT_ID/docker-compose"
id: clone-and-configure
entrypoint: "bash"
args:
- "-e"
- "-c"
- |
git clone -b $BRANCH_NAME https://github.com/getsentry/self-hosted.git
echo '{"version": "3.4", "networks":{"default":{"external":{"name":"cloudbuild"}}}}' > self-hosted/docker-compose.override.yml
timeout: 60s
- name: "gcr.io/$PROJECT_ID/docker-compose"
id: install
waitFor:
- clone-and-configure
dir: self-hosted
entrypoint: "bash"
args:
- "-e"
- "-c"
- |
./install.sh --no-report-self-hosted-issues
timeout: 600s
# The point is to run the tests that get run in sentry and snuba, to avoid
# accidentally breaking CI over there (not that this has ever happened;
# it's purely theoretical, you understand). Unfortunately this is a bit
# duplicatory. Meh.
- name: "gcr.io/$PROJECT_ID/docker-compose"
id: e2e-test
waitFor:
- install
dir: self-hosted
entrypoint: "bash"
args:
- "-e"
- "-c"
- |
set +e
./test.sh
test_return=$?
set -e
if [[ $test_return -ne 0 ]]; then
echo "Test failed.";
docker-compose ps;
docker-compose logs;
exit $test_return;
fi
timeout: 600s
timeout: 2640s
options:
# We need more memory for Webpack builds & e2e self-hosted tests
machineType: "N1_HIGHCPU_8"
env:
- "CI=1"
- "SENTRY_TEST_HOST=http://nginx"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jishudaquan/self-hosted.git
git@gitee.com:jishudaquan/self-hosted.git
jishudaquan
self-hosted
self-hosted
master

搜索帮助