blob: c900579ae34fcddb80d8dbe5242570fd9a702183 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#!/bin/bash
set -xe
TRAVIS_BUILD_STEP="$1"
if [ "$TRAVIS_BUILD_STEP" == "install" ]; then
sudo apt-get update -q
sudo apt-get install -y devscripts cdbs
if test "$encrypted_585e03da75ed_key" -a "$encrypted_585e03da75ed_iv"; then
openssl aes-256-cbc -K $encrypted_585e03da75ed_key -iv $encrypted_585e03da75ed_iv -in linux/debian/signing-key.txt.enc -d | gpg --import
echo "DEBUILD_DPKG_BUILDPACKAGE_OPTS='-k7D14AA7B'" >> ~/.devscripts
fi
elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then
#pwd
#ls -al
#git log
basever=`linux/debian/scripts/git2changelog.py /tmp/tmpchangelog stable`
cd ..
origsourceopt=""
#if ! wget http://ppa.launchpad.net/ivaradi/nextcloud-client-exp/ubuntu/pool/main/n/nextcloud-client/nextcloud-client_${basever}.orig.tar.bz2; then
if ! wget http://ppa.launchpad.net/nextcloud-devs/client/ubuntu/pool/main/n/nextcloud-client/nextcloud-client_${basever}.orig.tar.bz2; then
mv client_theming nextcloud-client_${basever}
tar cjf nextcloud-client_${basever}.orig.tar.bz2 --exclude .git nextcloud-client_${basever}
mv nextcloud-client_${basever} client_theming
origsourceopt="-sa"
fi
for distribution in trusty xenial yakkety zesty; do
rm -rf nextcloud-client_${basever}
cp -a client_theming nextcloud-client_${basever}
cd nextcloud-client_${basever}
cp -a linux/debian/nextcloud-client/debian .
if test -d linux/debian/nextcloud-client/debian.${distribution}; then
cp -a linux/debian/nextcloud-client/debian.${distribution} debian
fi
linux/debian/scripts/git2changelog.py /tmp/tmpchangelog ${distribution}
cp /tmp/tmpchangelog debian/changelog
if test -f linux/debian/nextcloud-client/debian.${distribution}/changelog; then
cat linux/debian/nextcloud-client/debian.${distribution}/changelog >> debian/changelog
else
cat linux/debian/nextcloud-client/debian/changelog >> debian/changelog
fi
EDITOR=true dpkg-source --commit . local-changes
if test "$encrypted_585e03da75ed_key" -a "$encrypted_585e03da75ed_iv"; then
debuild -S ${origsourceopt}
else
debuild -S ${origsourceopt} -us -uc
fi
cd ..
done
elif [ "$TRAVIS_BUILD_STEP" == "snap_store_deploy" ]; then
cd ..
for changes in nextcloud-client*_source.changes; do
#dput ppa:ivaradi/nextcloud-client-exp $changes > /dev/null
dput ppa:nextcloud-devs/client $changes > /dev/null
done
fi
|