From 832ba63ee267b96de7f6421315dbbb52eadbb80e Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 28 Mar 2021 19:44:50 -0600 Subject: add sketch of CI config --- .milli-ci/Dockerfile | 14 ++++++++++++++ .milli-ci/test.sh | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 .milli-ci/Dockerfile create mode 100644 .milli-ci/test.sh (limited to '.milli-ci') diff --git a/.milli-ci/Dockerfile b/.milli-ci/Dockerfile new file mode 100644 index 0000000..b85473a --- /dev/null +++ b/.milli-ci/Dockerfile @@ -0,0 +1,14 @@ +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 new file mode 100644 index 0000000..72358e1 --- /dev/null +++ b/.milli-ci/test.sh @@ -0,0 +1,4 @@ +#!/bin/sh -ex +cargo test --no-fail-fast +cargo clippy +cargo fmt --check -- cgit v1.2.3