diff options
| author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-03-24 08:28:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-24 08:28:34 +0000 |
| commit | 3a8bc6a43073b98b58c8cf0c20a930cb2c953b5d (patch) | |
| tree | 2d63ab8ade34cd54cf765a461639c6bbf93d8962 /.travis/testing-utils.sh | |
| parent | 396db899b5ae4ad011ef413e12b571556ec75f47 (diff) | |
| parent | 3d6db3261b124bc1705eb647f8c8bea89d936af6 (diff) | |
| download | klee-3a8bc6a43073b98b58c8cf0c20a930cb2c953b5d.tar.gz | |
Merge pull request #595 from andreamattavelli/travis_macosx
Travis-CI target for macOS
Diffstat (limited to '.travis/testing-utils.sh')
| -rwxr-xr-x | .travis/testing-utils.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis/testing-utils.sh b/.travis/testing-utils.sh index 3d52457f..29295be2 100755 --- a/.travis/testing-utils.sh +++ b/.travis/testing-utils.sh @@ -18,11 +18,16 @@ if [ "${LLVM_VERSION}" != "2.9" ]; then cmake . make # Normally I wouldn't do something like this but hey we're running on a temporary virtual machine, so who cares? - sudo cp lib* /usr/lib/ - sudo cp -r include/gtest /usr/include + if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then + sudo cp lib* /usr/lib/ + sudo cp -r include/gtest /usr/include + else # OSX + sudo cp lib* /usr/local/lib/ + sudo cp -r include/gtest /usr/local/include + fi else # LLVM2.9 on the other hand is a pain - + # We need the version of GoogleTest used in LLVM2.9 # This is a hack old_dir=`pwd` @@ -45,4 +50,3 @@ else cd "${old_dir}" fi - |
