testing?
This commit is contained in:
parent
de2a3b344c
commit
7bd52b8a93
3 changed files with 13 additions and 0 deletions
|
@ -1 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
IMAGE=$(docker build -q -f tests.Dockerfile .)
|
||||||
|
exec docker run --rm -it $IMAGE
|
||||||
|
|
|
@ -13,6 +13,7 @@ pub fn empty(dry: bool, days: Option<u32>) -> Result<(), Error> {
|
||||||
} else {
|
} else {
|
||||||
Local::now()
|
Local::now()
|
||||||
};
|
};
|
||||||
|
|
||||||
for file in home_trash.iter()? {
|
for file in home_trash.iter()? {
|
||||||
let file = file?;
|
let file = file?;
|
||||||
|
|
||||||
|
|
9
tests.Dockerfile
Normal file
9
tests.Dockerfile
Normal 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 .
|
Loading…
Reference in a new issue