Skip to content

Commit

Permalink
Re-enable OSX builds on Travis CI
Browse files Browse the repository at this point in the history
This reverts commit fc38f9b.
  • Loading branch information
emilio committed Jan 31, 2017
1 parent bdd034b commit 5f34248
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ addons:

os:
- linux
- osx

rust:
- stable
Expand Down
15 changes: 14 additions & 1 deletion ci/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
set -e
pushd ~

# Workaround for Travis CI macOS bug (https://github.com/travis-ci/travis-ci/issues/6307)
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
rvm get head || true
fi

function llvm_version_triple() {
if [ "$1" == "3.8" ]; then
echo "3.8.0"
Expand All @@ -18,9 +23,17 @@ function llvm_download() {
tar -xf ${LLVM}.tar.xz -C llvm --strip-components=1

export LLVM_CONFIG_PATH=`pwd`/llvm/bin/llvm-config
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
cp llvm/lib/libclang.dylib /usr/local/lib/libclang.dylib
fi
}

llvm_download linux-gnu-ubuntu-14.04

if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
llvm_download linux-gnu-ubuntu-14.04
else
llvm_download apple-darwin
fi

popd
set +e

0 comments on commit 5f34248

Please sign in to comment.