Install dependencies for travis more generally

This commit is contained in:
Gavin Bisesi 2014-06-25 11:48:48 -04:00
parent 2d400e55c7
commit bda01b2044
2 changed files with 10 additions and 3 deletions

View file

@ -6,7 +6,5 @@ compiler:
- gcc
- clang
script: mkdir build && cd build && cmake .. && make
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y qtmobility-dev libprotobuf-dev protobuf-compiler libqt4-dev build-essential
install: ./travis-dependencies.sh
cache: apt

9
travis-dependencies.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if [[ $TRAVIS_OS_NAME == "osx" ]] ; then
brew update
brew install qt cmake protobuf
else
sudo apt-get update -qq
sudo apt-get install -y qtmobility-dev libprotobuf-dev protobuf-compiler libqt4-dev
fi