1
0
mirror of https://github.com/google/cpu_features.git synced 2025-04-28 07:23:37 +02:00

ci(travis): adapt it to the new run_integration.sh

This commit is contained in:
Corentin Le Molgat 2021-10-25 11:36:40 +02:00 committed by Mizux
parent 8971bf0b0e
commit 440452e9a3

View File

@ -1,121 +1,139 @@
language: c language: c
sudo: false
cache: cache:
timeout: 1000 timeout: 1000
directories: directories:
- $HOME/cpu_features_archives - $HOME/cpu_features_archives
# see: https://docs.travis-ci.com/user/reference/focal/
dist: focal
addons: addons:
apt_packages: apt_packages:
- ninja-build - ninja-build
env: jobs:
global:
TOOLCHAIN=NATIVE
CMAKE_GENERATOR=Ninja
matrix:
include: include:
- os: linux - os: linux
compiler: gcc compiler: gcc
env: script:
TARGET=x86_64-linux-gnu - cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
- os: linux - os: linux
compiler: clang compiler: clang
env: script:
TARGET=x86_64-linux-gnu - cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
- os: osx - os: osx
compiler: gcc compiler: gcc
env: script:
TARGET=x86_64-osx - cmake --version
CMAKE_GENERATOR="Unix Makefiles" - cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --config Release --target ALL_BUILD -v
- cmake --build build --config Release --target RUN_TESTS -v
- cmake --build build --config Release --target install -v
- os: osx - os: osx
compiler: clang compiler: clang
env: script:
TARGET=x86_64-osx - cmake --version
CMAKE_GENERATOR="Unix Makefiles" - cmake -S. -Bbuild -G "Xcode" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --target ALL_BUILD -v
- cmake --build build --target RUN_TESTS -v
- cmake --build build --config Release --target install -v
- os: windows - os: windows
env: script:
TARGET=x86_64-windows - cmake --version
CMAKE_GENERATOR="Visual Studio 15 2017 Win64" - cmake -S. -Bbuild -G "Visual Studio 15 2017 Win64" -DCMAKE_CONFIGURATION_TYPES=Release
- cmake --build build --config Release --target ALL_BUILD
- cmake --build build --config Release --target RUN_TESTS
- cmake --build build --config Release --target INSTALL
# see: https://docs.travis-ci.com/user/multi-cpu-architectures/ # see: https://docs.travis-ci.com/user/multi-cpu-architectures/
- os: linux - os: linux
arch: ppc64le arch: ppc64le
compiler: gcc compiler: gcc
env: script:
TARGET=ppc64le-linux-gnu - cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
- os: linux - os: linux
arch: ppc64le arch: ppc64le
compiler: clang compiler: clang
env: script:
TARGET=ppc64le-linux-gnu - cmake --version
- cmake -S. -Bbuild
- cmake --build build --target all -v
- cmake --build build --target test -v
- cmake --build build --target install -v -- DESTDIR=dist
# Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems # Toolchains for little-endian, 64-bit ARMv8 for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=aarch64-linux-gnu TARGET=aarch64-linux-gnu
QEMU_ARCH=aarch64 script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems # Toolchains for little-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=arm-linux-gnueabihf TARGET=arm-linux-gnueabihf
QEMU_ARCH=arm script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, 32-bit ARMv8 for GNU/Linux systems # Toolchains for little-endian, 32-bit ARMv8 for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=armv8l-linux-gnueabihf TARGET=armv8l-linux-gnueabihf
QEMU_ARCH=arm script:
- ./scripts/run_integration.sh
# Toolchains for little-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems # Toolchains for little-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=arm-linux-gnueabi TARGET=arm-linux-gnueabi
QEMU_ARCH=arm script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, 64-bit ARMv8 for GNU/Linux systems # Toolchains for big-endian, 64-bit ARMv8 for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=aarch64_be-linux-gnu TARGET=aarch64_be-linux-gnu
QEMU_ARCH=DISABLED script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems # Toolchains for big-endian, hard-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=armeb-linux-gnueabihf TARGET=armeb-linux-gnueabihf
QEMU_ARCH=DISABLED script:
- ./scripts/run_integration.sh
# Toolchains for big-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems # Toolchains for big-endian, soft-float, 32-bit ARMv7 (and earlier) for GNU/Linux systems
- os: linux - os: linux
env: env:
TOOLCHAIN=LINARO
TARGET=armeb-linux-gnueabi TARGET=armeb-linux-gnueabi
QEMU_ARCH=DISABLED script:
- ./scripts/run_integration.sh
- os: linux - os: linux
env: env:
TOOLCHAIN=CODESCAPE
TARGET=mips32 TARGET=mips32
QEMU_ARCH=mips script:
- ./scripts/run_integration.sh
- os: linux - os: linux
env: env:
TOOLCHAIN=CODESCAPE
TARGET=mips32el TARGET=mips32el
QEMU_ARCH=mipsel script:
- ./scripts/run_integration.sh
- os: linux - os: linux
env: env:
TOOLCHAIN=CODESCAPE
TARGET=mips64 TARGET=mips64
QEMU_ARCH=mips64 script:
- ./scripts/run_integration.sh
- os: linux - os: linux
env: env:
TOOLCHAIN=CODESCAPE
TARGET=mips64el TARGET=mips64el
QEMU_ARCH=mips64el script:
- ./scripts/run_integration.sh
script:
- cmake --version
- bash -e -x ./scripts/run_integration.sh