From ceab25642da8386e4df40e92c30fbc47257c42b9 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Wed, 12 Sep 2018 10:18:39 -0500 Subject: [PATCH] adding gitlab ci configuration --- .gitlab-ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..873dca2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,34 @@ +stages: + - test + - build + +tests: + image: rust:1.28.0-jessie + stage: test + script: + - cargo test + tags: + - docker + +debug: + image: rust:1.28.0-jessie + stage: build + script: + - cargo build + artifacts: + paths: + - target/debug/ddns + tags: + - docker + +release: + image: rust:1.28.0-jessie + stage: build + script: + - cargo build --release + - strip target/release/ddns + artifacts: + paths: + - target/release/ddns + tags: + - docker \ No newline at end of file