File: .travis-deps.sh

package info (click to toggle)
oclgrind 16.10-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,728 kB
  • ctags: 4,361
  • sloc: cpp: 21,749; ansic: 3,139; lisp: 1,005; makefile: 149; python: 101; sh: 14
file content (26 lines) | stat: -rw-r--r-- 863 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

if [ "$TRAVIS_OS_NAME" == "linux" ]
then
    # Add repositories
    sudo add-apt-repository -y 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
    wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
    sudo apt-get update -qq

    # Remove existing LLVM
    sudo apt-get remove llvm

    # Install Clang + LLVM
    sudo apt-get install -y llvm-3.9-dev libclang-3.9-dev clang-3.9
    sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 20
    sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 20
    sudo rm -f /usr/local/clang-3.5.0/bin/clang
    sudo rm -f /usr/local/clang-3.5.0/bin/clang++

    # Other dependencies
    sudo apt-get install -y libedit-dev
elif [ "$TRAVIS_OS_NAME" == "osx" ]
then
    brew update
    brew install -v llvm --with-clang
fi