Skip to content

Commit dbb90c2

Browse files
committedDec 17, 2015
Pull LLVM setup into a script.
1 parent 6d77f49 commit dbb90c2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ compiler:
55
before_install:
66
- echo $LANG
77
- echo $LC_ALL
8-
- if [ $TRAVIS_OS_NAME == linux ]; then LLVM_TAR=llvm-3.4.2-x86_64-unknown-linux-gnu-4.7.tar.bz2 curl -o $LLVM_TAR https://s3.amazonaws.com/asset.rubini.us/prebuilt/$LLVM_TAR && mkdir vendor/llvm && cd vendor/llvm && tar -xjf $LLVM_TAR; fi
8+
- if [ $TRAVIS_OS_NAME == linux ]; then ./scripts/llvm.sh; fi
99
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install llvm35 && brew link --force llvm35; fi
1010
- rvm use $RVM --install --binary --fuzzy
1111
- gem update --system
1212
- gem --version
1313
before_script:
1414
- travis_retry bundle
15-
- if [ $TRAVIS_OS_NAME == linux ]; then travis_retry ./configure --llvm-config ./vendor/llvm/Release/bin/llvm-config; fi
15+
- if [ $TRAVIS_OS_NAME == linux ]; then travis_retry ./configure --llvm-config=./vendor/llvm/Release/bin/llvm-config; fi
1616
- if [ $TRAVIS_OS_NAME == osx ]; then travis_retry ./configure; fi
1717
script: rake ci
1818
after_success:

‎scripts/llvm.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
LLVM_TAR=llvm-3.4.2-x86_64-unknown-linux-gnu-4.7.tar.bz2
4+
5+
curl -o $LLVM_TAR https://s3.amazonaws.com/asset.rubini.us/prebuilt/$LLVM_TAR \
6+
&& mkdir -p vendor/llvm \
7+
&& tar -C vendor/llvm -xjf $LLVM_TAR

0 commit comments

Comments
 (0)
Please sign in to comment.