Skip to content

Commit

Permalink
Merge pull request #27 from rressi/feature/travis_support
Browse files Browse the repository at this point in the history
Build libdash on Travis
  • Loading branch information
bitressi committed Jul 23, 2019
2 parents bbceef2 + 46dcaa0 commit 168dfdf
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@

.metadata
build

.idea
cmake-build-*
85 changes: 85 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
language: c++

matrix:
include:

# UBUNTU - DEBUG - GCC
- os: linux
compiler: gcc
dist: bionic
env:
- BUILD_TYPE=Debug
- os: linux
compiler: gcc
dist: xenial
env:
- BUILD_TYPE=Debug
- os: linux
compiler: gcc
dist: trusty
env:
- BUILD_TYPE=Debug

# UBUNTU - DEBUG - CLANG
- os: linux
compiler: clang
dist: bionic
env:
- BUILD_TYPE=Debug
- os: linux
compiler: clang
dist: xenial
env:
- BUILD_TYPE=Debug
- os: linux
compiler: clang
dist: trusty
env:
- BUILD_TYPE=Debug

# UBUNTU - RELEASE - GCC
- os: linux
compiler: gcc
dist: bionic
env:
- BUILD_TYPE=Release
- os: linux
compiler: gcc
dist: xenial
env:
- BUILD_TYPE=Release
- os: linux
compiler: gcc
dist: trusty
env:
- BUILD_TYPE=Release

# UBUNTU - RELEASE - CLANG
- os: linux
compiler: clang
dist: bionic
env:
- BUILD_TYPE=Release
- os: linux
compiler: clang
dist: xenial
env:
- BUILD_TYPE=Release
- os: linux
compiler: clang
dist: trusty
env:
- BUILD_TYPE=Release

script:
- |
set -us
mkdir -p libdash/cmake-build-${BUILD_TYPE}
cd libdash/cmake-build-${BUILD_TYPE}
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
make
export LD_LIBRARY_PATH=$(pwd)/bin
./bin/libdash_networkpart_test
2 changes: 0 additions & 2 deletions libdash/libdash_networkpart_test/libdash_networkpart_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,4 @@ int main()
std::cout << "finished!" << std::endl << std::endl;

delete(peristenthttpconnection);

getchar();
}

0 comments on commit 168dfdf

Please sign in to comment.