aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorKyle Manna <kyle@kylemanna.com>2015-09-20 21:49:48 -0700
committerKyle Manna <kyle@kylemanna.com>2015-09-20 22:57:46 -0700
commit59d6add7d268b6252ee207db3378a72f5fb1bca5 (patch)
treee526148f6ffd613f3a0a6549d3bf89337f6760a7 /.travis.yml
parent6e72df4808aa138f1396ad098ce2d06a6feba882 (diff)
travis-ci: Initial working build
* Initial working build for Travis CI build system.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..5848c424
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,28 @@
+language: c
+
+compiler:
+ - gcc
+ - clang
+
+before_install:
+ - export PATH=$HOME/.local/bin:$HOME/protobuf/bin:$PATH
+ - export MAKEFLAGS=-j$(grep processor /proc/cpuinfo | wc -l)
+ - $CC --version
+ - python --version
+ - lsb_release -a
+
+cache:
+ directories:
+ - $HOME/protobuf
+install:
+ - pip install --user protobuf
+ - test \! -d $HOME/protobuf
+ && curl -L https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 | tar xjf -
+ && pushd protobuf-2.6.1
+ && ./configure --prefix=$HOME/protobuf && make && make install
+ && popd
+ || true # True if test is false as the cache exists
+
+script:
+ - pushd generator/proto && make && popd
+ - pushd tests && scons && popd