mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Increase packaging test logging
This commit is contained in:
parent
7cf0f95ed1
commit
f6831ab46b
@ -6,11 +6,11 @@ if ! type docker >/dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test="npm run clean && NODE_ENV=development npm install --unsafe-perm && npm test && npm run clean"
|
test="npm run clean; NODE_ENV=development npm install --unsafe-perm; npm test; npm run clean;"
|
||||||
|
|
||||||
# Debian 7
|
# Debian 7
|
||||||
echo -n "Testing wheezy... "
|
echo -n "Testing wheezy... "
|
||||||
if docker run -i -t --rm -v $PWD:/v nodesource/wheezy:0.12 sh -c "cd /v && ./packaging/test/debian.sh && ./preinstall.sh && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v nodesource/wheezy:0.12 sh -c "cd /v; ./packaging/test/debian.sh; ./preinstall.sh; $test";
|
||||||
then echo "OK"
|
then echo "OK"
|
||||||
else echo "fail"
|
else echo "fail"
|
||||||
fi
|
fi
|
||||||
@ -18,40 +18,40 @@ fi
|
|||||||
# Debian 8
|
# Debian 8
|
||||||
# Ubuntu 12.04, 14.04
|
# Ubuntu 12.04, 14.04
|
||||||
for dist in jessie precise trusty; do
|
for dist in jessie precise trusty; do
|
||||||
echo -n "Testing $dist... "
|
echo "Testing $dist..."
|
||||||
if docker run -i -t --rm -v $PWD:/v nodesource/$dist:0.12 sh -c "cd /v && ./packaging/test/debian.sh && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v nodesource/$dist:0.12 sh -c "cd /v; ./packaging/test/debian.sh; $test";
|
||||||
then echo "OK"
|
then echo "$dist OK"
|
||||||
else echo "fail"
|
else echo "$dist fail"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Centos 6
|
# Centos 6
|
||||||
echo -n "Testing centos6... "
|
echo "Testing centos6..."
|
||||||
if docker run -i -t --rm -v $PWD:/v nodesource/centos6:0.12 sh -c "cd /v && source ./packaging/test/centos6.sh && ./preinstall.sh && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v nodesource/centos6:0.12 sh -c "cd /v; source ./packaging/test/centos6.sh; ./preinstall.sh; $test";
|
||||||
then echo "OK"
|
then echo "centos6 OK"
|
||||||
else echo "fail"
|
else echo "centos6 fail"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Centos 7
|
# Centos 7
|
||||||
# Fedora 20, 21
|
# Fedora 20, 21
|
||||||
for dist in centos7 fedora20 fedora21; do
|
for dist in centos7 fedora20 fedora21; do
|
||||||
echo -n "Testing $dist... "
|
echo "Testing $dist..."
|
||||||
if docker run -i -t --rm -v $PWD:/v nodesource/$dist:0.12 sh -c "cd /v && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v nodesource/$dist:0.12 sh -c "cd /v; $test";
|
||||||
then echo "OK"
|
then echo "$dist OK"
|
||||||
else echo "fail"
|
else echo "$dist fail"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# openSUSE 13.2
|
# openSUSE 13.2
|
||||||
echo -n "Testing opensuse... "
|
echo "Testing opensuse..."
|
||||||
if docker run -i -t --rm -v $PWD:/v opensuse:13.2 sh -c "cd /v && ./packaging/test/opensuse.sh && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v opensuse:13.2 /bin/sh -c "cd /v; ./packaging/test/opensuse.sh; $test";
|
||||||
then echo "OK"
|
then echo "opensuse OK"
|
||||||
else echo "fail"
|
else echo "opensuse fail"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Archlinux 2015.06.01
|
# Archlinux 2015.06.01
|
||||||
echo -n "Testing archlinux... "
|
echo "Testing archlinux..."
|
||||||
if docker run -i -t --rm -v $PWD:/v base/archlinux:2015.06.01 sh -c "cd /v && ./packaging/test/archlinux.sh && $test" >/dev/null;
|
if docker run -i -t --rm -v $PWD:/v base/archlinux:2015.06.01 sh -c "cd /v; ./packaging/test/archlinux.sh; $test";
|
||||||
then echo "OK"
|
then echo "archlinux OK"
|
||||||
else echo "fail"
|
else echo "archlinux fail"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user