diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-01-19 22:52:35 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-01-19 22:52:35 +0000 |
| commit | ea7bd3569483edfaebcc32cb7af44d883a986960 (patch) | |
| tree | a33c99a6566a7cad27572433e0c015a4a4a3088a | |
| parent | Fixed bug in appveyor artifact name (diff) | |
| download | DiligentCore-ea7bd3569483edfaebcc32cb7af44d883a986960.tar.gz DiligentCore-ea7bd3569483edfaebcc32cb7af44d883a986960.zip | |
Updated travis to build install target and package build artifacts
| -rw-r--r-- | .travis.yml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 672fbaa8..4aa9b137 100644 --- a/.travis.yml +++ b/.travis.yml @@ -84,15 +84,21 @@ script: - cd cmk_build - | if [ "$TRAVIS_OS_NAME" = "linux" ]; then - cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${CONFIG} - cmake --build . + cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${CONFIG} -DCMAKE_INSTALL_PREFIX=install + cmake --build . --target install fi - | if [ "$TRAVIS_OS_NAME" = "osx" ]; then if [ "$IOS" = "true" ]; then - cmake .. -DCMAKE_TOOLCHAIN_FILE=../DiligentCore/ios.toolchain.cmake -DIOS_PLATFORM=OS64 -G "Xcode" + cmake .. -DCMAKE_TOOLCHAIN_FILE=../DiligentCore/ios.toolchain.cmake -DIOS_PLATFORM=OS64 -DCMAKE_INSTALL_PREFIX=install -G "Xcode" else cmake .. -G "Xcode" fi - cmake --build . --config ${CONFIG} + cmake --build . --target install --config ${CONFIG} fi + +after_success: + + - cd ../install + - export ZIP_NAME=DiligentCore-${TRAVIS_OS_NAME}-${GLSLANG_BUILD_TYPE}.zip; + - zip ${ZIP_NAME} ./*
\ No newline at end of file |
