Skip to content

Commit

Permalink
Compress installation directory, add before_deploy section in Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed May 17, 2017
1 parent 386bafc commit 0d5de78
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ test_script:
- cmd: '"%APPVEYOR_BUILD_FOLDER%\build\bin\%CONFIGURATION%\testRobotDevastation.exe"'

after_test:
- cmd: move "%APPVEYOR_BUILD_FOLDER%\install" "%APPVEYOR_BUILD_FOLDER%\robotDevastation_appveyor-%APPVEYOR_BUILD_ID%_v14_%SYSTEM_ARCH%"
- cmd: move "%APPVEYOR_BUILD_FOLDER%\install" "%APPVEYOR_BUILD_FOLDER%\robotDevastation_appveyor-%APPVEYOR_BUILD_NUMBER%_v14_%SYSTEM_ARCH%"

artifacts:
- path: robotDevastation_appveyor-$(APPVEYOR_BUILD_ID)_v14_$(SYSTEM_ARCH)
- path: robotDevastation_appveyor-$(APPVEYOR_BUILD_NUMBER)_v14_$(SYSTEM_ARCH)

deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
Expand Down
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ before_script:
- cd $TRAVIS_BUILD_DIR
- mkdir build
- cd build
- cmake ../ ${CMAKE_OPTIONS}
- cmake --build .
- sudo make install
- cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$PWD/install
- cmake --build . --target install
- export PATH=$PATH:$PWD/install/bin
- export YARP_DATA_DIRS=$YARP_DATA_DIRS:$PWD/install/share/rd

# SDL stuff
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
Expand Down Expand Up @@ -99,11 +101,16 @@ after_success:
#- if [ "$CXX" = "g++" ]; then coveralls-lcov --source-encoding=ISO-8859-1 --repo-token InWqFy6VWMrEUzr2Rn8XV0cGqv3wXWo2d coverage.info; fi
- if [ "$CXX" = "g++" ]; then coveralls-lcov --source-encoding=ISO-8859-1 coverage.info; fi

before_deploy:
- cd install
- tar -zcvf robotDevastation_travis-$TRAVIS_BUILD_NUMBER_trusty_x64.tar.gz *

deploy:
provider: releases
api_key:
secure: DORjZTWdhauq/l3s+pQj0ywjtkKxb00YNy9Tj3RH5+4I8/aRF2u6nFP61tnLUEEzz6GcEDp/lyIOtbuOI+hKO2M4Nq2stI++8FNvPjA8sdmNGXm3w2yIQFY+wFwZyLcn9y3l/7I8FeiQnfFk47/vHfy5DrdsqOr3Z6Ub7xINpKM=
file: bin/robotDevastation
file_glob: true
file: '*.tar.gz'
skip_cleanup: true
on:
tags: true
Expand Down

0 comments on commit 0d5de78

Please sign in to comment.