Added travis build
This commit is contained in:
parent
08b0d01719
commit
e71ec75ccb
2 changed files with 18 additions and 0 deletions
16
.travis.yml
Normal file
16
.travis.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
language: cpp
|
||||
|
||||
before_script:
|
||||
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
|
||||
- if [ "$CXX" = "g++" ]; then sudo apt-get update -qq; fi
|
||||
- if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8; fi
|
||||
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50; fi
|
||||
- if [ "$CXX" = "g++" ]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50; fi
|
||||
- wget -O Qt5.2.0.tar.xz https://dl.dropboxusercontent.com/u/20447449/Qt5.2.0.tar.xz
|
||||
- mkdir ~/Qt5.2.0
|
||||
- tar -xJf Qt5.2.0.tar.xz -C ~/Qt5.2.0
|
||||
- sudo chmod -R 777 ~/Qt5.2.0/
|
||||
- ln -s ~/Qt5.2.0/5.2.0/gcc_64/mkspecs/linux-g++ ~/Qt5.2.0/5.2.0/gcc_64/mkspecs/linux-gcc
|
||||
- make BUILDMODE=debug QTSDK=~/Qt5.2.0/5.2.0/gcc_64
|
||||
|
||||
script: make BUILDMODE=debug QTSDK=~/Qt5.2.0/5.2.0/gcc_64 tests
|
2
Makefile
2
Makefile
|
@ -1,7 +1,9 @@
|
|||
BUILDMODE=release
|
||||
QTSDK=
|
||||
BUILDPATH=./build/${BUILDMODE}
|
||||
LIBRARY_PATH=${BUILDPATH}/system:${BUILDPATH}/basics:${BUILDPATH}/definition:${BUILDPATH}/render/software:${BUILDPATH}/render/preview:${BUILDPATH}/render/opengl:${BUILDPATH}/tests/googletest
|
||||
BUILD_SPEC=linux-g++
|
||||
PATH:=${QTSDK}/bin:${PATH}
|
||||
|
||||
all:build
|
||||
|
||||
|
|
Loading…
Reference in a new issue