diff options
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..95f6783 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,26 @@ +# Official language image. Look for the different tagged releases at: +# https://hub.docker.com/r/library/rust/tags/ +image: "rust:latest" + +# Optional: Install a C compiler, cmake and git into the container. +# You will often need this when you (or any of your dependencies) depends on C code. +before_script: + - apt-get update -yqq + - apt-get --yes install libmnl-dev libnftnl-dev + +cache: + paths: + - target/ + - cargo/ + +# Set CARGO_HOME inside the CI directory, otherwise cargo won't use the cache. +variables: + CARGO_HOME: $CI_PROJECT_DIR/cargo + +test:cargo: + script: + - mkdir -p target cargo + - du -sh target cargo + - rustc --version && cargo --version # Print version info for debugging + - cargo test --workspace --verbose --release + |