Skip to content

Commit 6aeb0a2

Browse files
committed
Run tests on 32 bit
Closes #72
1 parent e89681e commit 6aeb0a2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ script: tests/run-ubuntu-chroot
55
env:
66
- RELEASE=
77
- RELEASE=artful
8+
- RELEASE=artful ARCH=i386
89
- RELEASE=xenial
910
cache:
1011
directories:

tests/run-ubuntu-chroot

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
set -eu
33

44
echo ${ARCH:=amd64}
5+
if [ "$ARCH" = i386 ]; then
6+
chrootprefix=linux32
7+
fi
58

69
if [ -z "${RELEASE:-}" ]; then
710
# determine latest release, usually devel (see https://launchpad.net/+apidoc)
@@ -26,7 +29,7 @@ sudo cp /etc/resolv.conf "$CHROOT/etc/resolv.conf"
2629
# copy code checkout into chroot
2730
sudo cp -a . "$CHROOT/build/src"
2831

29-
sudo chroot "$CHROOT" << EOF
32+
sudo ${chrootprefix:-} chroot "$CHROOT" << EOF
3033
mount -t proc proc /proc
3134
mount -t devtmpfs devtmpfs /dev
3235
mount -t devpts devpts /dev/pts

0 commit comments

Comments
 (0)