aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-01 23:36:14 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-01 23:36:14 -0600
commit0793cbaa213c8237a3b916b368a13727e9b643ca (patch)
tree31e26a5a039a4862cdae46df34bc8b87211b7a29
parentd12f9f563968ea8471b4929936ac4f8553810428 (diff)
downloadmakers-0793cbaa213c8237a3b916b368a13727e9b643ca.tar.gz
makers-0793cbaa213c8237a3b916b368a13727e9b643ca.zip
use someone else's CI since i'm not rolling my own anytime soon
-rw-r--r--.gitlab-ci.yml12
-rw-r--r--.milli-ci/Dockerfile14
-rw-r--r--.milli-ci/test.sh4
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