-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: handle packaging for OBS and windows
- Loading branch information
Showing
7 changed files
with
143 additions
and
13 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
Binary file not shown.
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,49 @@ | ||
#!/bin/bash | ||
|
||
[ "${TRAVIS_PULL_REQUEST}" == "false" -a \ | ||
"${TRAVIS_BRANCH}" == "${MY_DEPLOY_BRANCH}" \ | ||
] || exit | ||
set -e | ||
|
||
FULLVERS="$(date +%Y%m%d)~$(git rev-parse --short=7 HEAD)~${TRAVIS_BUILD_NUMBER}" | ||
FULLDATE=$(date -R) | ||
REPONAME=$(basename "${TRAVIS_REPO_SLUG}") | ||
|
||
git reset -q --hard | ||
git clean -dfqx | ||
./update.sh | ||
|
||
sed -ri \ | ||
-e "20 s/^(\s+).*(,)\$/\1\[${FULLVERS}\]\2/" \ | ||
configure.ac | ||
sed -ri \ | ||
-e "s/(^Build-Depends:.*)/\1, libzephyr4/" \ | ||
debian/control | ||
|
||
cat <<EOF > debian/changelog | ||
${REPONAME} (${FULLVERS}) UNRELEASED; urgency=medium | ||
* Updated to ${FULLVERS}. | ||
-- Travis CI <[email protected]> ${FULLDATE} | ||
EOF | ||
|
||
cat <<EOF > ~/.oscrc | ||
[general] | ||
apiurl = https://api.opensuse.org | ||
[https://api.opensuse.org] | ||
user = ${OBSUSER} | ||
pass = ${OBSPASS} | ||
EOF | ||
|
||
mkdir -p m4 | ||
osc checkout "home:${OBSUSER}" "${REPONAME}" -o /tmp/obs | ||
|
||
( | ||
cd /tmp/obs | ||
rm -f *.{dsc,tar.gz} | ||
dpkg-source -I -b "${TRAVIS_BUILD_DIR}" | ||
|
||
osc addremove -r | ||
osc commit -m "Updated to ${FULLVERS}" | ||
) |
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,10 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
CC="i686-w64-mingw32-gcc" \ | ||
DLL_LD_FLAGS="-static-libgcc" \ | ||
make -f Makefile.mingw \ | ||
install \ | ||
GLIB_GENMARSHAL="glib-genmarshal" \ | ||
PLUGIN_VERSION="${VERSION}" \ | ||
WIN32_TREE_TOP="win32-dev/pidgin-2.10.11" |
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,11 @@ | ||
#!/bin/bash | ||
|
||
[ "${TRAVIS_PULL_REQUEST}" == "false" -a \ | ||
"${TRAVIS_BRANCH}" == "${MY_DEPLOY_BRANCH}" \ | ||
] || exit | ||
set -e | ||
|
||
sftp -qo StrictHostKeyChecking=no -P ${SSHPORT} ${SSHUSER} -b <<EOF | ||
cd pidgin | ||
put win32-install-dir/plugins/libfacebook.dll | ||
EOF |
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,24 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
wget -nv -nc -P downloads/mingw-4.7.2 \ | ||
http://downloads.sourceforge.net/mingw/MinGW/Base/gcc/Version4/gcc-4.7.2-1/libssp-4.7.2-1-mingw32-dll-0.tar.lzma | ||
|
||
wget -nv -nc -P downloads/glib-2.28.8 \ | ||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_0.18.1.1-2_win32.zip \ | ||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev_1.2.5-2_win32.zip \ | ||
http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib-dev_2.28.8-1_win32.zip | ||
|
||
wget -nv -nc -P downloads \ | ||
https://github.com/jgeboski/purple-facebook/releases/download/downloads/json-glib-0.14.tar.gz \ | ||
https://github.com/jgeboski/purple-facebook/releases/download/downloads/pidgin-2.10.11.tar.gz | ||
|
||
for DIR in glib-2.28.8 mingw-4.7.2 .; do | ||
mkdir -p "win32-dev/${DIR}" | ||
find "downloads/${DIR}" -maxdepth 1 -iname '*.tar.*' \ | ||
-exec tar xf "{}" -C "win32-dev/${DIR}" \; | ||
find "downloads/${DIR}" -maxdepth 1 -iname '*.zip' \ | ||
-exec unzip -qq "{}" -d "win32-dev/${DIR}" \; | ||
done | ||
|
||
ln -sf ../../mingw-4.7.2/bin/libssp-0.dll win32-dev/glib-2.28.8/lib/libssp.dll |
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