Travis: Remove use of sudo to enable use container-based builds

This commit is contained in:
Yuri Kunde Schlesner 2015-07-10 19:21:39 -03:00
parent ac7bc214ab
commit 73b6a715ee
4 changed files with 28 additions and 10 deletions

View file

@ -11,8 +11,12 @@ fi
#if OS is linux or is not set
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
export CC=gcc-4.9
export CXX=g++-4.9
export PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH
mkdir build && cd build
cmake -DUSE_QT5=OFF ..
cmake -DCITRA_FORCE_QT4=ON ..
make -j4
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
export Qt5_DIR=$(brew --prefix)/opt/qt5