This commit is contained in:
Michael Zhang 2019-12-05 01:57:50 -06:00
parent de2a3b344c
commit 7bd52b8a93
No known key found for this signature in database
GPG key ID: 5BAEFE5D04F0CE6C
3 changed files with 13 additions and 0 deletions

View file

@ -1 +1,4 @@
#!/bin/bash
IMAGE=$(docker build -q -f tests.Dockerfile .)
exec docker run --rm -it $IMAGE

View file

@ -13,6 +13,7 @@ pub fn empty(dry: bool, days: Option<u32>) -> Result<(), Error> {
} else {
Local::now()
};
for file in home_trash.iter()? {
let file = file?;

9
tests.Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM rust:1.39
WORKDIR /usr/src/garbage
COPY . .
RUN pwd
RUN ls -l
RUN cargo build --release
FROM alpine:latest
COPY --from=0 /usr/src/garbage/target/release/garbage .