This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
forked from twitter/pelikan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
727905b adding a new API to duration timer (twitter#152) 9406717 add missing "extern C" qualifiers to a few headers for C++ linking; (twitter#150) a0aafdf Add missing semicolon to ring array example code in documentation. (twitter#149) 9264bbb Zero byte (twitter#147) (emergency fix needed for pelikan) d4002d7 simplify cc_print_int64 (twitter#146) b164fcf Clean-up hash functions and introduce MurmurHash3 (twitter#145) b1babb2 change wheel's sleep timer to make it less flaky (twitter#143) ce0b9ea allow printing negative integers in cc_print (twitter#141) ab0edc8 add metrics to track buf_sock objects (twitter#138) ae02038 add travis ci (copied from pelikan) (twitter#139) 964645a Merge pull request twitter#135 from paegun/fix_cmake_install 70710c2 fixed and re-added cmake install instructions, w/ following notes: include directory made proper relative; opened pattern match b/c include directory should only contain files meant for inclusion. 5b095bc Merge pull request twitter#126 from kevyang/kevyang/120 426d56a return NULL when cc_alloc/cc_realloc is called with size == 0 ad271d4 Merge pull request twitter#133 from kevyang/132 47dbdba suppress unused parameter warning in debug_log_flush 648d19e Merge pull request twitter#127 from kevyang/56 780941a Merge pull request twitter#130 from kevyang/129 b8af6c0 Merge pull request twitter#131 from kevyang/128 6ecc318 fix duplicate symbols in cc_signal 080c41d cc_array - stop doing arithmetic on void * d526f7a add debug oriented memory management a4fb927 Update bool member rules in style guide 05c6e1e explicitly make ccommon a C project to avoid checking for CXX related variables git-subtree-dir: deps/ccommon git-subtree-split: 727905b
- Loading branch information
Yao Yue
committed
May 19, 2018
1 parent
fdc7370
commit e2f471f
Showing
33 changed files
with
926 additions
and
573 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
sudo: required | ||
language: c | ||
|
||
# using anchor to import sources into linux builds | ||
addons: | ||
apt: &apt | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
- llvm-toolchain-precise-3.6 | ||
- llvm-toolchain-precise-3.7 | ||
- llvm-toolchain-precise | ||
|
||
# travis currently does not support directly setting gcc/clang with versions | ||
# (e.g. gcc-4.8) as value for the compiler key. So we will have to manually | ||
# request these packages and use environment varibles to create the matrix. | ||
# | ||
# In the case of osx, use brew to install the paritcular versions, instead of | ||
# specifying with packages. | ||
matrix: | ||
include: | ||
# gcc 4.8 on linux | ||
- env: C_COMPILER=gcc-4.8 | ||
addons: | ||
apt: | ||
<<: *apt | ||
packages: gcc-4.8 | ||
|
||
# gcc 4.9 on linux | ||
- env: C_COMPILER=gcc-4.9 | ||
addons: | ||
apt: | ||
<<: *apt | ||
packages: gcc-4.9 | ||
|
||
# gcc 5 on linux | ||
- env: C_COMPILER=gcc-5 | ||
addons: | ||
apt: | ||
<<: *apt | ||
packages: gcc-5 | ||
|
||
# clang 3.6 on linux | ||
- env: C_COMPILER=clang-3.6 | ||
addons: | ||
apt: | ||
<<: *apt | ||
packages: clang-3.6 | ||
|
||
# clang 3.7 on linux | ||
- env: C_COMPILER=clang-3.7 | ||
addons: | ||
apt: | ||
<<: *apt | ||
packages: clang-3.7 | ||
|
||
## gcc 4.8 on osx | ||
#- os: osx | ||
# env: FORMULA=gcc48 COMPILER=gcc C_COMPILER=gcc-4.8 | ||
# | ||
## gcc 4.9 on osx | ||
#- os: osx | ||
# env: FORMULA=gcc49 COMPILER=gcc C_COMPILER=gcc-4.9 | ||
# | ||
## gcc 5 on osx | ||
#- os: osx | ||
# env: FORMULA=gcc5 COMPILER=gcc C_COMPILER=gcc-5 | ||
|
||
# clang 3.6 on osx | ||
- os: osx | ||
osx_image: xcode6.4 | ||
env: C_COMPILER=clang | ||
|
||
# clang 3.7 on osx | ||
- os: osx | ||
osx_image: xcode7.1 | ||
env: C_COMPILER=clang | ||
|
||
# # clang 4.2 on osx | ||
# - os: osx | ||
# osx_image: xcode8.2 | ||
# env: C_COMPILER=clang | ||
|
||
|
||
before_install: | ||
# for osx: 0. update brew; 1. install cmake if missing; 2. (gcc) unlink pre-installed gcc; 3. (gcc) install desired version of gcc | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi' | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" && -z "$(which cmake)" ]]; then brew install cmake; fi' # xcode 7.1 is missing cmake | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" && "$COMPILER" == "gcc" ]]; then brew unlink gcc || true; fi' # ignore unlink errors | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" && "$COMPILER" == "gcc" ]]; then brew unlink $FORMULA || true; fi' # ignore unlink errors | ||
- 'if [[ "$TRAVIS_OS_NAME" == "osx" && "$COMPILER" == "gcc" ]]; then brew install $FORMULA; fi' | ||
- export CC=$C_COMPILER | ||
- wget https://github.com/libcheck/check/releases/download/0.11.0/check-0.11.0.tar.gz | ||
- tar xvfz check-0.11.0.tar.gz | ||
- cd check-0.11.0 && ./configure && make && sudo make install && cd .. | ||
|
||
script: | ||
- mkdir _build && cd _build | ||
- cmake .. | ||
- make -j | ||
- make check | ||
- egrep -r ":F:|:E:" . || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,5 @@ | |
#cmakedefine HAVE_LOGGING | ||
|
||
#cmakedefine HAVE_STATS | ||
|
||
#cmakedefine HAVE_DEBUG_MM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.