mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
Use docker only for integration tests
Run clippy/fmt/unittests separately.
This commit is contained in:
parent
3f41cdaa55
commit
9e77534e33
@ -2,15 +2,10 @@
|
|||||||
FROM rust:1.41.1-slim as electrs-build
|
FROM rust:1.41.1-slim as electrs-build
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -qq -y clang cmake
|
RUN apt-get install -qq -y clang cmake
|
||||||
RUN rustup component add rustfmt clippy
|
|
||||||
|
|
||||||
# Build, test and install electrs
|
# Install electrs
|
||||||
WORKDIR /build/electrs
|
WORKDIR /build/electrs
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo fmt -- --check
|
|
||||||
RUN cargo clippy
|
|
||||||
RUN cargo build --locked --release --all
|
|
||||||
RUN cargo test --locked --release --all
|
|
||||||
RUN cargo install --locked --path .
|
RUN cargo install --locked --path .
|
||||||
|
|
||||||
FROM debian:buster-slim as updated
|
FROM debian:buster-slim as updated
|
||||||
|
Loading…
Reference in New Issue
Block a user