From c0aab3741a518de60ec701a009789ead2386dbcb Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Thu, 11 Jun 2020 17:50:45 -0400 Subject: [PATCH] travis: save some time by not setting up the host to compile libiio on x86, when we are actually building on ARM Signed-off-by: Robin Getz --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4fe3aa3c2..d242a2815 100644 --- a/.travis.yml +++ b/.travis.yml @@ -100,9 +100,14 @@ addons: secure: "q0dQ9MrhnOCo031McxSdQIqw4N6tEyAZLq7mdbWkAJcXOh/CX58NjFvcdSfamleDUYRmg7KpCZPPgnbx2JtqVvWJv8aNnr67CE1GIjRP1Fxh2WaKS+VK+I6rro7GwCO2C9d+uffCt63LfZKqddF1T7vMI2IgHcu9irc5LCuw6Wo=" before_install: - - if [[ "$ARCH" == "arm" ]] ; then ./CI/travis/setup_qemu_for_arm.sh ${OS_VERSION} ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + if [[ "$ARCH" == "arm" ]] ; then + ./CI/travis/setup_qemu_for_arm.sh ${OS_VERSION} ; + else + ./CI/travis/before_install_linux "$OS_TYPE" ; + fi + fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./CI/travis/before_install_darwin ; fi - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./CI/travis/before_install_linux "$OS_TYPE" ; fi - if [[ -n "$COVERITY_SCAN_PROJECT_NAME" ]] ; then echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- ; fi - if [ -n "$COVERITY_SCAN_PROJECT_NAME" -a "$TRAVIS_EVENT_TYPE" == "cron" ] ; then curl -s 'https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh' | bash || true ; fi