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