-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
28 lines (26 loc) · 1.06 KB
/
build.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
github_version=$(cat github_version.txt)
ftp_version=$(cat ftp_version.txt)
del_version=$(cat delete_version.txt)
if [ "$github_version" != "$ftp_version" ]
then
cd /home/travis/gopath
mkdir github.com
cd github.com
mkdir minio
cd minio
wget https://github.com/minio/minio/archive/RELEASE.$github_version.zip
unzip RELEASE.$github_version.zip
mv minio-RELEASE.$github_version minio
cd minio
#sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
make
./minio --version
mv minio minio-$github_version
if [[ $github_version != $ftp_version ]]
then
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /ppc64el/minio/latest minio-$github_version"
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; rm /ppc64el/minio/latest/minio-$ftp_version"
fi
lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; put -O /ppc64el/minio minio-$github_version"
#lftp -c "open -u $USER,$PASS ftp://oplab9.parqtec.unicamp.br; rm /ppc64el/minio/minio-$del_version"
fi