From bb027340fb8dc3be29225a8af0845ab2e2cfa6bf Mon Sep 17 00:00:00 2001 From: Juanjo Alvarez Date: Tue, 21 Nov 2017 15:29:36 +0100 Subject: [PATCH] Use a precompiled package for osxcross for CI. Signed-off-by: Juanjo Alvarez --- .travis.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 76893f0..781e8b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -83,12 +83,8 @@ jobs: - stage: Build macOS shared env: - - OSXCROSS_PATH="$HOME/osxcross" - - OSXCROSS_REV=3034f7149716d815bc473d0a7b35d17e4cf175aa - - SDK_VERSION=10.11 - - DARWIN_VERSION=15 - - OSX_VERSION_MIN=10.6 - - OSXCROSS_SDK_URL="https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.11.sdk.tar.xz" + - OSXCROSS_PACKAGE="osxcross_3034f7149716d815bc473d0a7b35d17e4cf175aa.tar.gz" + - OSXCROSS_URL="https://github.com/bblfsh/client-scala/releases/download/v1.5.2/${OSXCROSS_PACKAGE}" - PATH="/$HOME/osxcross/bin:$PATH" sudo: true @@ -102,13 +98,8 @@ jobs: - go get -v -t ./... - sudo apt-get update - sudo apt-get install -y --no-install-recommends clang g++ gcc gcc-multilib libc6-dev libc6-dev-i386 mingw-w64 patch xz-utils - - mkdir -p /tmp/osxcross - - cd /tmp/osxcross - - curl -sSL "https://codeload.github.com/tpoechtrager/osxcross/tar.gz/${OSXCROSS_REV}" | tar -C /tmp/osxcross --strip=1 -xzf - - - curl -s -S -L -o tarballs/MacOSX${SDK_VERSION}.sdk.tar.xz ${OSXCROSS_SDK_URL} - - UNATTENDED=yes ./build.sh >/dev/null - - mv target "${OSXCROSS_PATH}" - - rm -rf /tmp/osxcross "${OSXCROSS_PATH}/SDK/MacOSX${SDK_VERSION}.sdk/usr/share/man" + - cd ${HOME} + - curl -sSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf - - cd $GOPATH/src/gopkg.in/src-d/enry.v1 script: