forked from ipab-slmc/exotica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ci_after_success.sh
27 lines (23 loc) · 964 Bytes
/
.ci_after_success.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# CI after_success script: builds a debian and uploads it
#
# author: Wolfgang Merkt
VERSION=`date +%Y.%m.%d-%H-%M`
mkdir -p ~/create_deb/DEBIAN
echo '
Package: exotica
Version: '"$VERSION"'
Architecture: all
Maintainer: IPAB-SLMC, The University of Edinburgh
Priority: optional
Homepage: http://github.com/openhumanoids/exotica
Description: This is a preliminary debian package for EXOTica.
Please note that this file is for build-server purposes only where dependencies are manually satisified. It will likely be broken on other systems.
' > ~/create_deb/DEBIAN/control
mkdir -p ~/create_deb/opt/ros/indigo/include
mkdir -p ~/create_deb/opt/ros/indigo/lib
mkdir -p ~/create_deb/opt/ros/indigo/share
cp -R ~/catkin_ws/install/include/ ~/create_deb/opt/ros/indigo/
cp -R ~/catkin_ws/install/lib/ ~/create_deb/opt/ros/indigo/
cp -R ~/catkin_ws/install/share/ ~/create_deb/opt/ros/indigo/
dpkg-deb --build ~/create_deb $TRAVIS_BUILD_DIR/exotica.deb