Navigation Menu

Skip to content

Commit

Permalink
Pull LLVM setup into a script.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Dec 17, 2015
1 parent 6d77f49 commit dbb90c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -5,14 +5,14 @@ compiler:
before_install:
- echo $LANG
- echo $LC_ALL
- 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
- if [ $TRAVIS_OS_NAME == linux ]; then ./scripts/llvm.sh; fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install llvm35 && brew link --force llvm35; fi
- rvm use $RVM --install --binary --fuzzy
- gem update --system
- gem --version
before_script:
- travis_retry bundle
- if [ $TRAVIS_OS_NAME == linux ]; then travis_retry ./configure --llvm-config ./vendor/llvm/Release/bin/llvm-config; fi
- if [ $TRAVIS_OS_NAME == linux ]; then travis_retry ./configure --llvm-config=./vendor/llvm/Release/bin/llvm-config; fi
- if [ $TRAVIS_OS_NAME == osx ]; then travis_retry ./configure; fi
script: rake ci
after_success:
Expand Down
7 changes: 7 additions & 0 deletions scripts/llvm.sh
@@ -0,0 +1,7 @@
#!/bin/bash

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 -p vendor/llvm \
&& tar -C vendor/llvm -xjf $LLVM_TAR

0 comments on commit dbb90c2

Please sign in to comment.