diff --git a/.travis.yml b/.travis.yml index 16cd2192..eb293a20 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,32 @@ jobs: - scripts/run_clang_tidy.sh after_success: - true + - os: linux + name: "Linux amd64 tests" + arch: amd64 + dist: bionic + env: + - BUILD_TYPE="test" + - INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}" + addons: + apt: + sources: + - sourceline: 'ppa:ubuntu-toolchain-r/test' + after_success: + - true + - os: linux + name: "Linux arm64 tests" + arch: amd64 + dist: bionic + env: + - BUILD_TYPE="test" + - INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}" + addons: + apt: + sources: + - sourceline: 'ppa:ubuntu-toolchain-r/test' + after_success: + - true - os: linux stage: "Build" name: "Windows mingw32" diff --git a/.travis/script.sh b/.travis/script.sh index 0ecc8086..654344de 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -6,26 +6,24 @@ set -ex mkdir -p build/${INSTALL_DIR} && cd build if [[ ${CROSS_COMPILE} == "mingw32" ]]; then - buildenv i686-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_JACK=OFF -DSFIZZ_STATIC_LIBSNDFILE=ON .. buildenv make -j elif [[ ${CROSS_COMPILE} == "mingw64" ]]; then - buildenv x86_64-w64-mingw32-cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_JACK=OFF -DSFIZZ_STATIC_LIBSNDFILE=ON .. buildenv make -j elif [[ ${BUILD_TYPE} == "lv2" ]]; then - buildenv cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_JACK=OFF -DSFIZZ_TESTS=OFF -DSFIZZ_SHARED=OFF -DSFIZZ_STATIC_LIBSNDFILE=ON .. - buildenv make -j + buildenv make -j$(nproc) +elif [[ ${BUILD_TYPE} == "test" ]]; then + buildenv cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_JACK=OFF -DSFIZZ_TESTS=ON -DSFIZZ_SHARED=OFF -DSFIZZ_STATIC_LIBSNDFILE=OFF -DSFIZZ_LV2=OFF .. + buildenv make -j$(nproc) sfizz_tests + buildenv tests/sfizz_tests elif [[ ${TRAVIS_OS_NAME} == "linux" ]]; then - buildenv cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_LV2=OFF -DSFIZZ_TESTS=OFF .. buildenv make -j$(nproc) elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then - buildenv cmake -DCMAKE_BUILD_TYPE=Release -DSFIZZ_TESTS=OFF .. buildenv make -j$(sysctl -n hw.ncpu) - # Xcode not currently supported, see https://gitlab.kitware.com/cmake/cmake/issues/18088 # xcodebuild -project sfizz.xcodeproj -alltargets -configuration Debug build fi