Skip to content

Commit

Permalink
Add travis-ci integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Rigtorp committed Sep 14, 2018
1 parent 5e52370 commit 0a43264
Show file tree
Hide file tree
Showing 15 changed files with 125 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
105 changes: 105 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
language: cpp

sudo: false

matrix:
include:

# clang-4
- env: COMPILER=clang-4.0
compiler: clang
os: linux
addons:
apt:
packages:
- clang-4.0
- libstdc++-6-dev
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0

# clang-5
- env: COMPILER=clang-5.0
compiler: clang
os: linux
addons:
apt:
packages:
- clang-5.0
- libstdc++-7-dev
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0

# clang-6
- env: COMPILER=clang-6.0
compiler: clang
os: linux
addons:
apt:
packages:
- clang-6.0
- libstdc++-7-dev
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-6.0

# gcc-5
- env: COMPILER=gcc-5
compiler: gcc
os: linux
addons:
apt:
packages:
- g++-5
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test

# gcc-6
- env: COMPILER=gcc-6
compiler: gcc
os: linux
addons:
apt:
packages:
- g++-6
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test

# gcc-7
- env: COMPILER=gcc-7
compiler: gcc
os: linux
addons:
apt:
packages:
- g++-7
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test

# gcc-8
- env: COMPILER=gcc-8
compiler: gcc
os: linux
addons:
apt:
packages:
- g++-8
- libsparsehash-dev
sources:
- ubuntu-toolchain-r-test

before_script:
- export CC=$COMPILER
- mkdir build
- cd build
- cmake ..

script:
- make
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 2.8)
project(ipc-bench C)

add_compile_options(-Wall -Wextra -Wpedantic)

add_executable(pipe_lat src/pipe_lat.c)
add_executable(pipe_thr src/pipe_thr.c)
add_executable(tcp_lat src/tcp_lat.c)
add_executable(tcp_local_lat src/tcp_local_lat.c)
add_executable(tcp_remote_lat src/tcp_remote_lat.c)
add_executable(tcp_thr src/tcp_thr.c)
add_executable(udp_lat src/udp_lat.c)
add_executable(unix_lat src/unix_lat.c)
add_executable(unix_thr src/unix_thr.c)

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Erik Rigtorp <[email protected]>
Copyright (c) 2018 Erik Rigtorp <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
25 changes: 0 additions & 25 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ipc-bench
=========

[![GitHub](https://img.shields.io/github/license/rigtorp/ipc-bench.svg)](https://github.com/rigtorp/ipc-bench/blob/master/LICENSE)
[![Travis (.org)](https://img.shields.io/travis/rigtorp/ipc-bench.svg)](https://travis-ci.org/rigtorp/ipc-bench)

Some very crude IPC benchmarks.

ping-pong latency benchmarks:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0a43264

Please sign in to comment.