Commit 53be2546 authored by Johannes Barthel's avatar Johannes Barthel
Browse files

add gitlab ci for building bionic packages

parent 9a3b58e3
Pipeline #5718 passed with stages
in 6 minutes and 54 seconds
stages:
- "build"
- "test"
- "package"
variables:
GIT_SUBMODULE_STRATEGY: recursive
CARGO_HOME: $CI_PROJECT_DIR/.cargo
cache:
key: one-key-to-rule-them-all
paths:
- "target"
- "$CI_PROJECT_DIR/.cargo"
default:
image: gitlab.senfcall.de:5050/senfcall/docker-rust-bionic:latest
build:
stage: build
script:
- cargo build --release
#test:
# stage: test
# script:
# - rustc --version && cargo --version # Print version info for debugging
# - cargo test --workspace --verbose
package:
stage: package
script:
# incorporate git commit number and version into package name
- cargo deb --deb-version "$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml)-$(git rev-list --count "$(git rev-parse HEAD)")+git$(git rev-parse --short HEAD)"
artifacts:
paths:
- target/debian/*.deb
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment