Skip to content

Commit 6421b9c

Browse files
author
Andrew Elder
committed
add travis CI support
1 parent 18c7bad commit 6421b9c

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.travis.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
# git submodules workaround
5+
git:
6+
submodules: false
7+
# use sed to replace SSH URL with the public URL, then init submodules
8+
before_install:
9+
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
10+
- git submodule update --init --recursive
11+
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
12+
- sudo apt-get update -qq
13+
- sudo apt-get install -y libpcap-dev linux-headers-3.13.0-36-generic cmake
14+
- if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq libstdc++-4.8-dev; fi
15+
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
16+
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
17+
env: BUILD_KERNEL=3.13.0-36-generic
18+
install:
19+
script: ./travis.sh

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
Build status
3+
4+
[![Build Status](https://travis-ci.org/andrew-elder/avdecc-lib.svg?branch=staging)](https://travis-ci.org/andrew-elder/avdecc-lib)
5+
16
avdecc-lib
27
==========
38

@@ -400,3 +405,4 @@ Release Notes
400405
=============
401406

402407
None so far.
408+

travis.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -ev
3+
mkdir build
4+
cd build
5+
cmake .. -G "Unix Makefiles"
6+
make

0 commit comments

Comments
 (0)