improve Makefile tests

This commit is contained in:
t1m0t committed 2022-02-04 17:18:31 +01:00
1 parent ca9700a84d
commit bd565bb65f
4 files changed
+35 -16

No files matched your search

+13 -2
View File
@@ -1,9 +1,20 @@
FROM rust:1.58-buster
RUN apt update
RUN apt install -y libglib2.0-dev libgtk-3-dev libsoup2.4-dev libappindicator3-dev libwebkit2gtk-4.0-dev firefox-esr
RUN apt install -y \
libglib2.0-dev \
libgtk-3-dev \
libsoup2.4-dev \
libappindicator3-dev \
libwebkit2gtk-4.0-dev \
firefox-esr
# for kcov and Tarpaulin
#liblzma-dev binutils-dev libcurl4-openssl-dev libdw-dev libelf-dev
RUN cargo install cargo-make --debug
# for test coverage
#RUN cargo install cargo-tarpaulin
# clean up a bit
RUN cargo install cargo-cache && cargo cache -a
CMD ["echo","\"base image built\""]
CMD ["exit"]
+2 -3
View File
@@ -25,14 +25,13 @@ function run_script {
then
docker image rm dioxus-base-test-image
docker image rm dioxus-test-image
docker system prune -af
fi
fi
}
run_script || echo "Error occured.. cleaning a bit." && \
docker system prune -af;
docker system prune -f;
docker system prune -af
docker system prune -f
echo "Script finished to execute"