summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorfranchuti688 <franchuti688@gmail.com>2015-04-01 12:35:37 +0200
committerWouter van Oortmerssen <wvo@google.com>2015-04-15 13:43:25 -0700
commit23f75f598e7876858faabc9f2bccac2cf83db235 (patch)
treecd95632dc5f62a19e42d550ef31a03b215d2cf6d /.travis.yml
parente3b432cba853f30ab2b4e6957f40d1aa63218cad (diff)
downloadflatbuffers-23f75f598e7876858faabc9f2bccac2cf83db235.tar.gz
flatbuffers-23f75f598e7876858faabc9f2bccac2cf83db235.tar.bz2
flatbuffers-23f75f598e7876858faabc9f2bccac2cf83db235.zip
added .travis.yml file (build with original and biicode building);
added bii-travis.sh and readme.md files; added build status section with travis and biicode build systems Change-Id: I93acd1ca9497416ade6293d63b5311c4c31b880f
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..92da83fa
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,25 @@
+language: cpp
+
+os:
+- linux
+
+env:
+ matrix:
+ - BUILD_TYPE=Debug BIICODE=false
+ - BUILD_TYPE=Release BIICODE=false
+ - BUILD_TYPE=Release BIICODE=true
+ - BUILD_TYPE=Debug BIICODE=true
+ global:
+ - GCC_VERSION="4.9"
+
+before_install:
+- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+- sudo apt-get update -qq
+- sudo apt-get install -qq g++-$GCC_VERSION
+- sudo apt-get install -qq gcc-$GCC_VERSION
+- sudo ln -s -v -f $(which g++-$GCC_VERSION) /usr/bin/g++
+- sudo ln -s -v -f $(which gcc-$GCC_VERSION) /usr/bin/gcc
+
+script:
+- if [ "$BIICODE" == "false" ]; then cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE . && make && make test; fi
+- if [ "$BIICODE" == "true" ]; then ./biicode/support/bii-travis.sh $BUILD_TYPE; fi