diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8d7d0b4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: rascul3/rust:latest + +build: + stage: build + script: + - cargo build + + +doc: + stage: build + script: + - cargo doc + - mv target/doc public + artifacts: + paths: + -public + +test: + stage: doc tests + script: + - cargo test --doc + +pages: + stage: deploy + script: + - mv readme.html public/index.html + artifacts: + paths: + - public + only: + - master