diff --git a/.gitignore b/.gitignore index c59b67d1..996fa0c0 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,6 @@ .metadata build + +.idea +cmake-build-* diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..b68ccd23 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/libdash/libdash_networkpart_test/libdash_networkpart_test.cpp b/libdash/libdash_networkpart_test/libdash_networkpart_test.cpp index c537b3d4..a55b73f2 100644 --- a/libdash/libdash_networkpart_test/libdash_networkpart_test.cpp +++ b/libdash/libdash_networkpart_test/libdash_networkpart_test.cpp @@ -91,6 +91,4 @@ int main() std::cout << "finished!" << std::endl << std::endl; delete(peristenthttpconnection); - - getchar(); }