forked from famez/J1939-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (36 loc) · 771 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
dist: trusty
sudo: required
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
- libgtest-dev
- protobuf-compiler
- libprotobuf-dev
install:
- pushd ~
- git clone https://github.com/open-source-parsers/jsoncpp.git
- pushd jsoncpp
- cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON
- sudo make install
- popd
- popd
- pushd ~
- git clone https://github.com/warmcat/libwebsockets.git
- pushd libwebsockets
- cmake .
- sudo make install
- popd
- popd
- pushd /usr/src/gtest
- sudo env "PATH=$PATH" cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- popd
script:
- CXX=/usr/bin/g++-6 CC=/usr/bin/gcc-6 cmake .
- cmake --build .
- ./Tests/execTests