Use a precompiled package for osxcross for CI.

Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
This commit is contained in:
Juanjo Alvarez 2017-11-21 15:29:36 +01:00
parent acaf8f3d38
commit bb027340fb
No known key found for this signature in database
GPG Key ID: A52FD588B3FE5FE8

View File

@ -83,12 +83,8 @@ jobs:
- stage: Build macOS shared - stage: Build macOS shared
env: env:
- OSXCROSS_PATH="$HOME/osxcross" - OSXCROSS_PACKAGE="osxcross_3034f7149716d815bc473d0a7b35d17e4cf175aa.tar.gz"
- OSXCROSS_REV=3034f7149716d815bc473d0a7b35d17e4cf175aa - OSXCROSS_URL="https://github.com/bblfsh/client-scala/releases/download/v1.5.2/${OSXCROSS_PACKAGE}"
- 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"
- PATH="/$HOME/osxcross/bin:$PATH" - PATH="/$HOME/osxcross/bin:$PATH"
sudo: true sudo: true
@ -102,13 +98,8 @@ jobs:
- go get -v -t ./... - go get -v -t ./...
- sudo apt-get update - 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 - 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 ${HOME}
- cd /tmp/osxcross - curl -sSL ${OSXCROSS_URL} | tar -C ${HOME} -xzf -
- 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 $GOPATH/src/gopkg.in/src-d/enry.v1 - cd $GOPATH/src/gopkg.in/src-d/enry.v1
script: script: