-
Notifications
You must be signed in to change notification settings - Fork 8
/
release.sh
61 lines (57 loc) · 1.48 KB
/
release.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
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
#!/bin/sh
user="Travis CI"
email="travis@travis-ci.org"
perun="perun-linux-amd64"
github="https://$2@github.com/Appliscale"
release="https://github.com/Appliscale/perun/releases/download/$1/$perun.tar.gz"
files="https://raw.githubusercontent.com/Appliscale/perun/master"
cd ~
sudo apt-get install rpm
git clone https://github.com/Appliscale/rpmbuild.git
cd rpmbuild/SOURCES
rm $perun.tar.gz
wget $release
wget $files/LICENSE
tar xvzf $perun.tar.gz
rm $perun.tar.gz
tar cvzf $perun.tar.gz $perun LICENSE
rm LICENSE $perun
cd ..
rpmbuild -ba SPECS/$perun.spec
git remote
git config user.email $email
git config user.name $user
git add .
git commit -m "[AUTO] Update RPM by Travis CI. Perun $1"
git push $github/rpmbuild.git master
cd ~
git clone https://github.com/Appliscale/perun-dpkg.git
cd perun-dpkg
chmod +x control.sh
./control.sh $1
cd /perun/usr/local/bin
rm $perun
wget $release
tar xvzf $perun.tar.gz
rm $perun.tar.gz
cd ~/perun-dpkg
dpkg-deb --build perun
git remote
git config user.email $email
git config user.name $user
git add .
git commit -m "[AUTO] Update DPKG by Travis CI. Perun $1"
git push $github/perun-dpkg.git master
cd ~
git clone https://github.com/Appliscale/homebrew-tap.git
cd homebrew-tap
wget https://github.com/Appliscale/perun/blob/master/formula.sh
chmod +x formula.sh
./formula.sh $1
rm formula.sh
git remote
git config user.email $email
git config user.name $user
git add .
git commit -m "[AUTO] Update Homebrew by Travis CI. Perun $1"
git push $github/homebrew-tap.git master