From 0793cbaa213c8237a3b916b368a13727e9b643ca Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Thu, 1 Apr 2021 23:36:14 -0600 Subject: use someone else's CI since i'm not rolling my own anytime soon --- .gitlab-ci.yml | 12 ++++++++++++ .milli-ci/Dockerfile | 14 -------------- .milli-ci/test.sh | 4 ---- 3 files changed, 12 insertions(+), 18 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 .milli-ci/Dockerfile delete mode 100644 .milli-ci/test.sh 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 -- cgit v1.2.3