blob: 144b046b5774a8288777c25bfa70c0ce00e2801b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# docker run -v $(realpath .):/root/sbotools2 -t sbotools2-test:14.1
FROM vbatts/slackware:14.1
ARG MIRROR=https://mirrors.slackware.com/slackware/slackware64-14.1
# Project must be mounted here.
VOLUME /root/sbotools2
# Upgrade and install all
RUN sed -i 's/^WGETFLAGS=".*"/WGETFLAGS="--quiet --no-check-certificate"/g' /etc/slackpkg/slackpkg.conf
RUN yes y | slackpkg update && \
slackpkg install-new -terse && \
slackpkg upgrade-all -terse -batch=yes -default_answer=yes && \
slackpkg install -terse -batch=yes -default_answer=yes a ap d f n l t tcl
# Fix SSL certificate errors
RUN yes y | slackpkg reinstall ca-certificates
RUN cpan install \
Capture::Tiny \
Devel::Cover\
Test::Diff \
Test::Exit \
Test::More
# Git configuration some test's setup.
RUN git config --global user.name root \
&& git config --global user.email root@localhost
WORKDIR /root/sbotools2
CMD prove -v t/*.t
|