Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-101
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tom.andrivet
rust-101
Commits
391915d2
Commit
391915d2
authored
1 year ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
Added CI/CD
parent
c13c36a7
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
codes/run_tests.sh
+12
-0
12 additions, 0 deletions
codes/run_tests.sh
with
24 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
12
−
0
View file @
391915d2
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image
:
"
rust:1.70-alpine3.17"
# Use cargo to test the project
test:cargo
:
script
:
-
rustc --version && cargo --version
# Print version info for debugging
run_test_doc
:
script
:
-
cd codes
-
./run_tests.sh
This diff is collapsed.
Click to expand it.
codes/run_tests.sh
0 → 100755
+
12
−
0
View file @
391915d2
#!/bin/sh
make
-C
c_lang/min_list
cd
rust_lang
for
d
in
*
;
do
echo
====================
Running cargo run
for
$d
====================
cargo run
--manifest-path
$d
/Cargo.toml
echo
====================
Running cargo
test
for
$d
====================
cargo
test
--manifest-path
$d
/Cargo.toml
--workspace
--verbose
echo
====================
Running cargo doc
for
$d
====================
cargo doc
--manifest-path
$d
/Cargo.toml
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment