This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
59 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 |
---|---|---|
|
@@ -33,6 +33,7 @@ script: | |
- cd ${TRAVIS_BUILD_DIR}/build | ||
- cmake .. | ||
- cmake --build . | ||
- cmake --build . --target test | ||
- cd ${TRAVIS_BUILD_DIR}/build/bin | ||
- tar -cf AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar server client | ||
#- cmake --build . --target package | ||
|
@@ -48,30 +49,31 @@ after_success: | |
fi | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: | ||
- curl -T ${TRAVIS_BUILD_DIR}/build/bin/AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar -uk-morozov:$BINTRAY_API_KEY https://api.bintray.com/content/k-morozov/AppChat/Download/0.7.$TRAVIS_BUILD_NUMBER/AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar | ||
on: | ||
- provider: script | ||
skip_cleanup: true | ||
script: | ||
- curl -T ${TRAVIS_BUILD_DIR}/build/bin/AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar -uk-morozov:$BINTRAY_API_KEY https://api.bintray.com/content/k-morozov/AppChat/Download/0.7.$TRAVIS_BUILD_NUMBER/AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar | ||
on: | ||
branch: master | ||
|
||
- provider: pages | ||
skip-cleanup: true | ||
github-token: $GITHUB_API_KEY | ||
keep-history: true | ||
local-dir: docs/html | ||
on: | ||
branch: master | ||
#provider: pages | ||
#skip-cleanup: true | ||
#github-token: $GITHUB_API_KEY | ||
#keep-history: true | ||
#local-dir: docs/html | ||
#on: | ||
#branch: master | ||
|
||
before_deploy: | ||
- git config --local user.name "k-morozov" | ||
- git config --local user.email "[email protected]" | ||
#- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%d%m')-$TRAVIS_BUILD_NUMBER-Linux} | ||
- git tag 0.7.$TRAVIS_BUILD_NUMBER-Linux | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_API_KEY | ||
file: AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar | ||
skip_cleanup: true | ||
on: | ||
- provider: releases | ||
api_key: $GITHUB_API_KEY | ||
file: AppChat-0.7.$TRAVIS_BUILD_NUMBER-Linux.tar | ||
skip_cleanup: true | ||
on: | ||
branch: release | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(Tests) | ||
|
||
set(TESTS_BIN tests) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(Boost_USE_STATIC_LIBS ON) | ||
set(Boost_USE_MULTITHREADED ON) | ||
|
||
#**************************************************************************************************** | ||
set(TESTS_SOURSES | ||
startup_tests.cpp | ||
test_request.cpp | ||
test_response.cpp | ||
test_datetime.cpp | ||
) | ||
|
||
#**************************************************************************************************** | ||
set_target_properties(${TESTS} PROPERTIES | ||
CXX_STANDARD 17 | ||
CXX_STANDARD_REQUIRED ON | ||
LINK_LIBRARIES pthread | ||
COMPILE_OPTIONS "-std=c++17;-O2;-Wall;-Wextra;-Wpedantic" | ||
) | ||
#**************************************************************************************************** | ||
add_executable(${TESTS_BIN} ${TESTS_SOURSES}) | ||
target_include_directories(${TESTS_BIN} PUBLIC .) | ||
include_directories(${GTEST_INCLUDE_DIR}) | ||
find_package(GTest REQUIRED) | ||
find_library(UnitTests gtest) | ||
#**************************************************************************************************** | ||
|
||
target_link_libraries (${TESTS_BIN} ${CMAKE_THREAD_LIBS_INIT} ${UnitTests} ${PROTOCOL_LIB_NAME}) |