-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: introduce multi-arch configuration
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
# vi: ts=4 sw=4 et: | ||
|
||
dist: bionic | ||
|
||
before_install: | ||
- sudo apt-get update -y | ||
- | | ||
sudo apt-get install -y --no-install-recommends \ | ||
gcc-7 libgcc-7-dev ninja-build \ | ||
libacl1-dev libcurl4-openssl-dev libfuse-dev liblzma-dev \ | ||
libssl-dev libudev-dev libzstd-dev pkg-config python3.6 \ | ||
python3-pip python3-setuptools python3-wheel python-sphinx \ | ||
rsync squashfs-tools zlib1g-dev | ||
- sudo python3.6 -m pip install meson | ||
|
||
jobs: | ||
include: | ||
- stage: Build & test | ||
name: Ubuntu Bionic (x86_64) | ||
language: bash | ||
install: | ||
- meson build | ||
- ninja -C build | ||
script: | ||
- ninja -C build test | ||
- sudo CASYNC_TEST_NBD=0 $(which ninja) -C build test | ||
|
||
- name: Ubuntu Bionic (i386) | ||
language: bash | ||
env: | ||
- PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu | ||
before_install: | ||
- sudo dpkg --add-architecture i386 | ||
- sudo apt-get update -y | ||
- | | ||
sudo apt-get install -a i386 -y --no-install-recommends \ | ||
gcc-7 gcc-multilib libgcc-7-dev ninja-build \ | ||
libacl1-dev libcurl4-openssl-dev libfuse-dev liblzma-dev \ | ||
libssl-dev libudev-dev libzstd-dev pkg-config python3.6 \ | ||
python3-pip python3-setuptools python3-wheel python-sphinx \ | ||
rsync squashfs-tools zlib1g-dev | ||
- sudo python3.6 -m pip install meson | ||
install: | ||
- CFLAGS=-m32 LDFLAGS=-m32 meson build-i386 | ||
- ninja -C build-i386 | ||
script: | ||
- linux32 ninja -C build-i386 test | ||
- sudo CASYNC_TEST_NBD=0 linux32 $(which ninja) -C build-i386 test | ||
|
||
- name: Ubuntu Bionic (aarch64) | ||
arch: arm64 | ||
language: bash | ||
install: | ||
- meson build | ||
- ninja -C build | ||
script: | ||
- ninja -C build test | ||
- sudo CASYNC_TEST_NBD=0 $(which ninja) -C build test | ||
|
||
- name: Ubuntu Bionic (s390x) | ||
arch: s390x | ||
language: bash | ||
install: | ||
- meson build | ||
- ninja -C build | ||
script: | ||
- ninja -C build test | ||
- sudo CASYNC_TEST_NBD=0 $(which ninja) -C build test | ||
|
||
- name: Ubuntu Bionic (ppc64le) | ||
arch: ppc64le | ||
language: bash | ||
install: | ||
- meson build | ||
- ninja -C build | ||
script: | ||
- ninja -C build test | ||
- sudo CASYNC_TEST_NBD=0 $(which ninja) -C build test |