From 5ac6e1fe33ce0ead20bc4971d61fd5cb0fc500bd Mon Sep 17 00:00:00 2001 From: femsci Date: Mon, 2 Aug 2021 11:51:44 +0000 Subject: [PATCH] Create CI/CD --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..705c0a8 --- /dev/null +++ b/.gitlab-ci.yml @@ -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