diff options
-rw-r--r-- | .gitlab-ci.yml | 12 | ||||
-rw-r--r-- | .milli-ci/Dockerfile | 14 | ||||
-rw-r--r-- | .milli-ci/test.sh | 4 |
3 files changed, 12 insertions, 18 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d7149ec --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +default: + image: rust:latest + +test: + script: + - cargo test --no-fail-fast + - cargo test --no-fail-fast --no-default-features + - rustup component add clippy + - cargo clippy + - cargo clippy --no-default-features + - rustup component add rustfmt + - cargo fmt -- --check diff --git a/.milli-ci/Dockerfile b/.milli-ci/Dockerfile deleted file mode 100644 index b85473a..0000000 --- a/.milli-ci/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM rust:latest -RUN rustup component add clippy rustfmt -WORKDIR /usr/src/makers -COPY Cargo.* . -RUN mkdir src -RUN echo "fn main() {}" > src/main.rs -RUN cargo check -RUN cargo test -RUN cargo build -RUN rm src/main.rs -COPY . . -RUN touch src/main.rs -RUN chmod +x .milli-ci/test.sh -CMD [".milli-ci/test.sh"] diff --git a/.milli-ci/test.sh b/.milli-ci/test.sh deleted file mode 100644 index 46c4a2a..0000000 --- a/.milli-ci/test.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -ex -cargo test --no-fail-fast -cargo clippy -cargo fmt -- --check |