Create CI/CD
This commit is contained in:
parent
091b5c487d
commit
5ac6e1fe33
1 changed files with 21 additions and 0 deletions
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
image: "rust:latest"
|
||||
|
||||
# before_script:
|
||||
# - apt-get update -yqq
|
||||
# - apt-get install -yqq --no-install-recommends build-essential
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
||||
- build
|
||||
- test
|
||||
|
||||
build-job: # This job runs in the build stage, which runs first.
|
||||
stage: build
|
||||
script:
|
||||
- echo "Compiling..."
|
||||
- cargo build --verbose
|
||||
|
||||
unit-test-job: # This job runs in the test stage.
|
||||
stage: test # It only starts when the job in the build stage completes successfully.
|
||||
script:
|
||||
- echo "Running tests..."
|
||||
- cargo test --verbose
|
Loading…
Reference in a new issue