Skip to content

Commit 01bb3e9

Browse files
authored
Add Travis CI support for arm64 architectures (hardbyte#705)
Add support for the arm64 architecture from Travis CI's alpha offering. This enables the test suite to run within an arm64 LXD container (minus the tests that exercise SocketCAN, as the image is missing the required kernel modules).
1 parent 9c3fc16 commit 01bb3e9

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,29 @@ jobs:
4747
- stage: test
4848
name: Socketcan
4949
os: linux
50+
arch: amd64
5051
dist: trusty
5152
python: "3.6"
5253
sudo: required
5354
env: TEST_SOCKETCAN=TRUE
5455

56+
# arm64 builds
57+
- stage: test
58+
name: Linux arm64
59+
os: linux
60+
arch: arm64
61+
language: generic
62+
sudo: required
63+
addons:
64+
apt:
65+
update: true
66+
env: HOST_ARM64=TRUE
67+
before_install:
68+
- sudo apt install -y python3 python3-pip
69+
# Travis doesn't seem to provide Python binaries yet for this arch
70+
- sudo update-alternatives --install /usr/bin/python python $(which python3) 10
71+
- sudo update-alternatives --install /usr/bin/pip pip $(which pip3) 10
72+
5573
# testing on OSX
5674
- stage: test
5775
os: osx

0 commit comments

Comments
 (0)