5848c424741d090cb700e91506cc346db8227d81
[apps/agl-service-can-low-level.git] / .travis.yml
1 language: c
2
3 compiler:
4     - gcc
5     - clang
6
7 before_install:
8     - export PATH=$HOME/.local/bin:$HOME/protobuf/bin:$PATH
9     - export MAKEFLAGS=-j$(grep processor /proc/cpuinfo | wc -l)
10     - $CC --version
11     - python --version
12     - lsb_release -a
13
14 cache:
15     directories:
16         - $HOME/protobuf
17 install:
18     - pip install --user protobuf
19     - test \! -d $HOME/protobuf
20       && curl -L https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 | tar xjf -
21       && pushd protobuf-2.6.1
22       && ./configure --prefix=$HOME/protobuf && make && make install
23       && popd
24       || true # True if test is false as the cache exists
25
26 script: 
27     - pushd generator/proto && make && popd
28     - pushd tests && scons && popd