mirror of
https://github.com/DefectingCat/candy
synced 2025-07-15 16:51:34 +00:00
update ci
add test in ci add editorconfig
This commit is contained in:
8
.editorconfig
Normal file
8
.editorconfig
Normal file
@ -0,0 +1,8 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
end_of_line = lf
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_size = 4
|
@ -1,9 +1,10 @@
|
||||
stages:
|
||||
- test
|
||||
- build
|
||||
|
||||
variables:
|
||||
APP_NAME: "candy"
|
||||
GIT_CLONE_PATH: '$CI_BUILDS_DIR/$CI_PROJECT_NAME/$CI_PIPELINE_ID'
|
||||
GIT_CLONE_PATH: "$CI_BUILDS_DIR/$CI_PROJECT_NAME/$CI_PIPELINE_ID"
|
||||
|
||||
image: "rust:latest"
|
||||
|
||||
@ -17,6 +18,11 @@ before_script:
|
||||
- echo "registry = \"sparse+https://mirrors.ustc.edu.cn/crates.io-index/\"" >> $HOME/.cargo/config
|
||||
- mkdir public
|
||||
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- cargo test
|
||||
|
||||
build:linux-gnu-amd64:
|
||||
stage: build
|
||||
rules:
|
||||
@ -68,4 +74,3 @@ rustdoc:
|
||||
artifacts:
|
||||
paths:
|
||||
- target/doc
|
||||
|
||||
|
Reference in New Issue
Block a user