Added build dependencies to CI and Dockerfile
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
parent
a696888e11
commit
0eeea1e593
|
@ -19,6 +19,7 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
|
- apk add musl-dev postgresql-dev
|
||||||
- cargo build
|
- cargo build
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,6 +29,7 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
|
- apk add musl-dev postgresql-dev
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,6 +40,7 @@ pipeline:
|
||||||
environment:
|
environment:
|
||||||
- CARGO_HOME=.cargo
|
- CARGO_HOME=.cargo
|
||||||
commands:
|
commands:
|
||||||
|
- apk add musl-dev postgresql-dev
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
# This is run here because it requires compilation
|
# This is run here because it requires compilation
|
||||||
- cargo clippy --all-targets -- -D warnings
|
- cargo clippy --all-targets -- -D warnings
|
||||||
|
|
|
@ -2,6 +2,12 @@ FROM rust:1.52-alpine3.13 AS builder
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Install build dependencies
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
musl-dev \
|
||||||
|
postgresql-dev
|
||||||
|
|
||||||
|
# Copy over source code
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY src ./src/
|
COPY src ./src/
|
||||||
|
|
||||||
|
|
Reference in New Issue