1 Star 0 Fork 178

lsong/Class-test-ci

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Class-test for Gitee

注:本仓库仅用于测试

使用教程

step0

请确保已在训练营网站个人信息中正确填写了 Gitee Username

step1

fork 本仓库并开通 Gitee go 服务。

首先 fork 本仓库到自己的 Gitee 下。

而后切换到 fork 后仓库的流水线页面:

点击”开通 Gitee GO“来使用 CI。

是否创建默认流水线建议选择“不创建”。

注:开通 Gitee go 后流水线页面显示无流水线为正常现象

step2

将远程仓库 clone 到本地或者使用 webIDE 进行实验

项目结构

.
├── exercises //所有习题都在此文件夹下
├── LICENSE
├── Makefile 
├── README.en.md
├── README.md
└── test //所有测例都在此文件夹下

本地测试

make test-output

会对所有题目进行测试。

测试并保存结果

mkdir build
make save-test-results 

运行此会创建 build 目录,并在 build 目录下生成 test_results.json 文件保存测试结果。

该文件格式如下:

{
  "channel": "gitee",//提交渠道
  "courseId": 1558,//课程ID
  "ext": "aaa",
  "name": "xukunyuan-star",//提交者信息
  "score": 5,//提交者当前分数
  "totalScore": 5//当前实验总分
  }

在线的自动测试会在每次向仓库提交内容后自动运行,测试结果可以流水线页面查阅。

step3

完成实验后,请上传至远程仓库运行 CI。详细执行情况与输出可在流水线页面查看。

最终的结果可在训练营网站查看:

傲来操作系统社区 - 第一期傲来操作系统(EulixOS)训练营 (opencamp.cn)

关于 Gitee go 的介绍:

Gitee Go 2.0 - Gitee.com

MIT License Copyright (c) 2024 徐堃元 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li-lisong-1/class-test-ci.git
git@gitee.com:li-lisong-1/class-test-ci.git
li-lisong-1
class-test-ci
Class-test-ci
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891