Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4daeb53

Browse files
Update .gitlab-ci.yml file
1 parent caf3671 commit 4daeb53

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

‎.gitlab-ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
stages:
2+
- build
3+
- test
4+
5+
variables:
6+
CARGO_TERM_COLOR: "always"
7+
8+
build:
9+
stage: build
10+
image: rust:latest
11+
before_script:
12+
- rustup component add clippy
13+
- rustup component add rustfmt
14+
script:
15+
- cargo check -p lc0_general_nodes_template
16+
- cargo check -p lc100_is_same_tree
17+
- cargo check -p lc103_binary_tree_zigzag_level_order_traversal
18+
- cargo build --verbose
19+
20+
test:
21+
stage: test
22+
image: rust:latest
23+
script:
24+
- cargo test --verbose
25+
26+
workflow:
27+
rules:
28+
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "main"'
29+
- if: '$CI_PIPELINE_SOURCE == "merge_request" && $CI_COMMIT_BRANCH == "main"'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /