Install dependencies for travis more generally
This commit is contained in:
parent
2d400e55c7
commit
bda01b2044
2 changed files with 10 additions and 3 deletions
|
@ -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
9
travis-dependencies.sh
Executable 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
|
Loading…
Reference in a new issue