Skip to content

Commit e8eea22

Browse files
author
bors-servo
authored
Auto merge of #464 - emilio:osx-testing, r=fitzgen
Re-enable OSX builds on Travis CI This reverts commit fc38f9b. r? @fitzgen
2 parents bdd034b + 5f34248 commit e8eea22

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ addons:
99

1010
os:
1111
- linux
12+
- osx
1213

1314
rust:
1415
- stable

ci/before_install.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
set -e
22
pushd ~
33

4+
# Workaround for Travis CI macOS bug (https://github.com/travis-ci/travis-ci/issues/6307)
5+
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
6+
rvm get head || true
7+
fi
8+
49
function llvm_version_triple() {
510
if [ "$1" == "3.8" ]; then
611
echo "3.8.0"
@@ -18,9 +23,17 @@ function llvm_download() {
1823
tar -xf ${LLVM}.tar.xz -C llvm --strip-components=1
1924

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

23-
llvm_download linux-gnu-ubuntu-14.04
31+
32+
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
33+
llvm_download linux-gnu-ubuntu-14.04
34+
else
35+
llvm_download apple-darwin
36+
fi
2437

2538
popd
2639
set +e

0 commit comments

Comments
 (0)